:root{--ink:#17324d;--muted:#6d8296;--line:#dce7ee;--bg:#f4f8fb;--card:#fff;--blue:#2563eb;--blue-soft:#eaf1ff;--teal:#0f9f9a;--danger:#bd3d47;--shadow:0 14px 36px rgba(26,59,91,.08);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{min-height:68px;height:auto;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:10px 28px;position:sticky;top:0;z-index:3}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#2563eb,#14b8a6);color:#fff;font-weight:800;font-size:20px}.brand strong{display:block;font-size:15px;letter-spacing:.04em}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.topbar-actions,.head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.save-state{font-size:12px;color:var(--muted);margin-right:8px}.button{border:1px solid transparent;border-radius:9px;padding:9px 14px;font-size:13px;transition:.18s ease}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--blue);color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.2)}.button.secondary{background:var(--teal);color:#fff}.button.ghost{background:#fff;border-color:var(--line);color:var(--ink)}.button.small{padding:6px 9px;font-size:12px}.button.danger{color:var(--danger);border-color:#f1c6ca;background:#fff}.app-shell{display:grid;grid-template-columns:232px minmax(560px,1fr) 270px;min-height:calc(100vh - 72px);max-width:1600px;margin:0 auto}.sidebar{background:#f8fbfd;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;letter-spacing:.08em;color:#4c647b;text-transform:uppercase;padding:0 10px 17px}.sidebar-heading span:last-child{font-size:11px;color:var(--blue);letter-spacing:0}.step-nav{display:flex;flex-direction:column;gap:5px}.step-link{border:0;background:transparent;text-align:left;padding:11px 10px;border-radius:10px;color:#60778d;display:flex;align-items:center;gap:11px;font-size:13px}.step-link:hover{background:#eef4fa;color:var(--ink)}.step-link.active{background:var(--blue-soft);color:var(--blue);font-weight:700}.step-number{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cddbe6;border-radius:8px;font-size:11px;background:#fff}.step-link.active .step-number{background:var(--blue);color:#fff;border-color:var(--blue)}.step-link.done .step-number{background:#dcf6ef;color:#087d6c;border-color:#a9e8d9}.sidebar-note{margin-top:auto;background:#edf8f6;border:1px solid #c6ebe4;border-radius:12px;padding:12px;display:flex;gap:9px;font-size:11px;color:#286c66}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--teal);margin-top:4px;flex:none}.sidebar-note strong{font-size:11px}.sidebar-note p{margin:5px 0 0;line-height:1.55}.workspace{padding:36px 42px 28px;max-width:920px;width:100%;margin:0 auto}.workspace-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--teal);font-weight:800;margin:0 0 7px}.workspace h1{margin:0;font-size:27px;letter-spacing:-.02em}.step-hint{margin:8px 0 0;color:var(--muted);font-size:13px}.step-content{min-height:500px}.section-card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:var(--shadow);margin-bottom:16px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{font-size:15px;margin:0}.section-title p{font-size:12px;color:var(--muted);margin:4px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#486279}.field label .required{color:#df5a64;margin-left:2px}.field input,.field select,.field textarea{border:1px solid #d9e4eb;border-radius:9px;padding:10px 11px;color:var(--ink);background:#fbfdfe;outline:none}.field textarea{min-height:82px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#81a7f7;box-shadow:0 0 0 3px #eaf1ff}.helper{font-size:11px;color:var(--muted);line-height:1.5}.repeater{display:flex;flex-direction:column;gap:10px}.repeat-row{border:1px solid #e1eaf0;border-radius:11px;padding:13px;background:#fbfdff;position:relative}.repeat-row .remove-row{position:absolute;right:10px;top:9px}.repeat-row .form-grid{padding-right:34px;gap:11px}.empty-state{border:1px dashed #bfd2df;border-radius:10px;padding:21px;text-align:center;color:var(--muted);font-size:12px}.add-row{margin-top:11px}.tag{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:4px 8px;background:#eff5fa;color:#55718a;font-size:11px}.tag.blue{background:var(--blue-soft);color:var(--blue)}.tag.green{background:#e8f8f4;color:#087d6c}.check-list{display:flex;flex-direction:column;gap:9px}.check-item{display:flex;gap:9px;padding:11px;border:1px solid #e1eaf0;border-radius:9px;font-size:12px;line-height:1.45}.check-item.ok{border-color:#bce9dc;background:#f4fcfa}.check-item.error{border-color:#f1c6ca;background:#fff8f8}.check-icon{font-weight:800;width:16px}.error-text{color:var(--danger)}.success-text{color:#087d6c}.review-header{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:15px;border-radius:11px;background:#f1f6ff;border:1px solid #d9e6ff;margin-bottom:18px}.review-header strong{font-size:13px}.review-header p{margin:4px 0 0;font-size:12px;color:#57708a}.alert{border:1px solid #f4c9ce;background:#fff7f8;color:var(--danger);border-radius:9px;padding:11px 13px;margin-bottom:14px;font-size:12px}.workspace-foot{border-top:1px solid var(--line);padding-top:19px;display:flex;align-items:center;justify-content:space-between;margin-top:18px}.foot-progress{text-align:center;display:flex;flex-direction:column;gap:3px;font-size:12px;color:#506a81}.foot-progress span:last-child{font-size:11px;color:var(--muted)}.inspector{border-left:1px solid var(--line);padding:28px 18px;background:#fbfdfe}.inspector-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:14px}.card-label{font-size:10px;color:#7890a4;font-weight:800;letter-spacing:.12em;margin-bottom:11px}.status-line{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.status-badge{display:inline-flex;padding:5px 8px;border-radius:6px;font-size:10px;letter-spacing:.06em;font-weight:800}.status-badge.draft{background:#fff3d8;color:#9b6b00}.status-badge.review{background:#eaf1ff;color:#245dc5}.status-badge.approved{background:#e7f8f2;color:#087d6c}.mini-rule{height:1px;background:var(--line);margin:14px 0}.metric{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:11px;color:#647d92}.metric strong{font-size:14px;color:var(--ink)}.metric strong.danger{color:var(--danger)}.principles{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;font-size:12px;color:#516b81}.principles li:before{content:"✓";color:var(--teal);font-weight:800;margin-right:7px}.preview-card{max-height:300px;overflow:hidden}.preview-card pre{margin:0;color:#587086;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;max-height:240px;overflow:auto}@media(max-width:1100px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.inspector{display:none}}@media(max-width:700px){.topbar{padding:0 16px}.topbar-actions .save-state,.topbar-actions .ghost{display:none}.app-shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:12px 14px}.sidebar-note{display:none}.step-nav{flex-direction:row;overflow:auto}.step-link{min-width:max-content;padding:8px}.step-link span:last-child{display:none}.workspace{padding:23px 16px}.workspace-head{display:block}.head-actions{margin-top:15px}.form-grid,.form-grid.three{grid-template-columns:1fr}.step-content{min-height:0}.workspace-foot{margin-top:10px}}
