:root{--color-bg-base: #f6f8fa;--color-bg-elevated: #ffffff;--color-border: #d1d9e0;--color-text-primary: #1f2328;--color-text-secondary: #59636e;--color-text-muted: #818b98;--color-primary: #0969da;--color-primary-subtle: rgba(9, 105, 218, .08);--color-state-ok: #1a7f37;--color-state-error: #cf222e;--color-state-warn: #9a6700;--color-state-info: #0969da;--color-state-muted: #818b98;--color-gap-config: #8250df;--color-gap-resource: #0f766e;--color-gap-engine: #bc4c00;--font-ui: Inter, "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;--font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;--shadow-sm: 0 1px 2px rgba(31, 35, 40, .06);--shadow-md: 0 4px 12px rgba(31, 35, 40, .1)}html[data-theme=dark]{--color-bg-base: #0d1117;--color-bg-elevated: #161b22;--color-border: #30363d;--color-text-primary: #e6edf3;--color-text-secondary: #9da7b3;--color-text-muted: #6e7781;--color-primary: #4493f8;--color-primary-subtle: rgba(68, 147, 248, .15);--color-state-ok: #3fb950;--color-state-error: #f85149;--color-state-warn: #d29922;--color-state-info: #58a6ff;--color-state-muted: #6e7781;--color-gap-config: #bc8cff;--color-gap-resource: #2dd4bf;--color-gap-engine: #db6d28}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font-ui);background:var(--color-bg-base);color:var(--color-text-primary)}a{color:var(--color-primary)}code,pre,.afde-mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.afde-shell{min-height:100vh}.afde-sider{border-right:1px solid var(--color-border);position:sticky!important;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column}.afde-brand{height:56px;display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--color-border)}.afde-brand-mark{width:28px;height:28px;border-radius:6px;background:var(--color-primary);color:#fff;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.afde-brand small{display:block;font-size:11px;color:var(--color-text-muted);line-height:1.2}.afde-menu{border-inline-end:0!important;flex:1 1 auto;padding-bottom:8px}.afde-menu .ant-menu-item-group-title,.afde-menu .ant-menu-submenu-title{padding:12px 16px 4px!important;font-size:12px;font-weight:500;color:var(--color-text-muted)}.afde-menu .ant-menu-submenu-title .ant-menu-submenu-arrow{color:var(--color-text-muted)}.afde-menu .ant-menu-item{margin:2px 8px!important;width:calc(100% - 16px)!important;padding-left:12px!important}.afde-menu .ant-menu-item-selected{font-weight:500}.afde-nav-label{display:inline-flex;align-items:center;justify-content:space-between;width:100%;gap:6px}.afde-sider-footer{position:sticky;bottom:0;background:var(--color-bg-elevated);border-top:1px solid var(--color-border);padding:8px;display:flex;flex-direction:column;align-items:flex-start}.afde-sider-footer .ant-btn{padding-inline:4px;font-size:12px;color:var(--color-text-secondary)}.afde-header{height:56px!important;line-height:normal!important;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px!important;border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:20}.afde-breadcrumb{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap}.afde-context-bar{height:32px;display:flex;align-items:center;padding:0 24px;background:var(--color-primary-subtle);border-bottom:1px solid var(--color-border);font-size:12px;overflow-x:auto;white-space:nowrap}.afde-content{padding:20px 24px 40px;min-height:calc(100vh - 88px)}.afde-page-breadcrumb{font-size:12px;color:var(--color-text-secondary);margin-bottom:4px}.afde-page-header{margin-bottom:20px}.afde-page-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.afde-page-title{font-size:22px!important;font-weight:700!important;line-height:30px!important}.afde-page-actions{flex:0 0 auto}.afde-card{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;padding:16px}.afde-card+.afde-card{margin-top:16px}.afde-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.afde-card-title h3{margin:0;font-size:16px;font-weight:600}.afde-section+.afde-section{margin-top:24px}.afde-muted{color:var(--color-text-muted)}.afde-secondary{color:var(--color-text-secondary)}.afde-mono{font-size:12px}.afde-json-wrap{margin-top:8px}.afde-json{background:var(--color-bg-base);border:1px solid var(--color-border);border-radius:6px;padding:12px;overflow:auto;font-size:12px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.afde-term{border-bottom:1px dashed var(--color-text-muted);cursor:help}.afde-field-help{font-size:13px}.afde-inline-hint{font-size:12px;color:var(--color-text-muted);margin-top:4px}.afde-disabled-wrap{cursor:not-allowed}.afde-stages{display:flex;align-items:flex-start;gap:0;padding:8px 0 4px;overflow-x:auto}.afde-stage-item{display:flex;align-items:center;flex:1 1 0;min-width:96px}.afde-stage{border:0;background:transparent;padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;color:var(--color-text-muted);flex:0 0 auto;min-width:72px}.afde-stage:disabled{cursor:default}.afde-stage-dot{position:relative;width:28px;height:28px;border-radius:50%;border:1px solid var(--color-border);display:inline-flex;align-items:center;justify-content:center;font-size:12px;background:var(--color-bg-elevated)}.afde-stage.is-done .afde-stage-dot{border-color:var(--color-state-ok);color:var(--color-state-ok)}.afde-stage.is-current .afde-stage-dot{border-color:var(--color-primary);color:#fff;background:var(--color-primary);box-shadow:0 0 0 4px var(--color-primary-subtle)}.afde-stage.is-current .afde-stage-label{color:var(--color-primary);font-weight:600}.afde-stage.is-done .afde-stage-label{color:var(--color-text-secondary);font-weight:500}.afde-stage.is-phase2{opacity:.6}.afde-stage-label{font-size:13px;white-space:nowrap}.afde-stage-blocking{font-size:11px;color:var(--color-state-error);font-weight:500}.afde-stage-phase2{font-size:10px;color:var(--color-text-muted);border:1px solid var(--color-border);border-radius:4px;padding:0 4px}.afde-stage-badge{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--color-state-error);color:#fff;font-size:10px;font-style:normal;display:inline-flex;align-items:center;justify-content:center}.afde-stage-line{flex:1 1 auto;height:1px;border-top:1px dashed var(--color-border);margin:0 2px;transform:translateY(-14px)}.afde-stage-line.is-done{border-top:1px solid var(--color-state-ok)}.afde-stages-note{display:block;font-size:11px;margin-top:4px}.afde-next-card{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-left:3px solid var(--color-primary);border-radius:8px;padding:16px;box-shadow:var(--shadow-sm)}.afde-next-eyebrow{font-size:12px;letter-spacing:.02em}.afde-checklist{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;padding:12px 16px}.afde-checklist.is-complete,.afde-checklist.is-collapsed{display:flex;align-items:center;justify-content:space-between;width:100%;cursor:pointer;font-size:13px;color:var(--color-text-secondary)}.afde-checklist-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.afde-checklist-progress{font-size:12px;color:var(--color-text-muted);margin:4px 0 8px}.afde-checklist-list{list-style:none;margin:0;padding:0}.afde-checklist-list li{min-height:36px;display:flex;align-items:center;gap:8px;font-size:13px;border-top:1px solid var(--color-border)}.afde-checklist-list li:first-child{border-top:0}.afde-checklist-list li.is-done{color:var(--color-text-muted)}.afde-checklist-mark{width:16px;color:var(--color-primary)}.afde-checklist-list li.is-done .afde-checklist-mark{color:var(--color-state-ok)}.afde-checklist-title{flex:1 1 auto}.afde-checklist-done{font-size:12px;color:var(--color-state-ok)}.afde-checklist-skipped{border-top:1px solid var(--color-border);margin-top:4px;padding-top:4px}.afde-checklist-skipped ul{list-style:none;margin:0;padding:0}.afde-checklist-skipped li{display:flex;justify-content:space-between;font-size:12px;color:var(--color-text-muted)}.afde-empty{padding:40px 16px;display:flex;flex-direction:column;align-items:center;text-align:center}.afde-readiness-history{margin-top:20px;padding-top:16px;border-top:1px solid var(--color-border)}.afde-table-wrap .ant-table{font-size:13px}.afde-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.afde-row-blocking{box-shadow:inset 3px 0 0 var(--color-state-error)}.afde-gap-chip{display:inline-flex;align-items:center;gap:4px;padding:0 6px;border-radius:4px;font-size:12px;border:1px solid currentColor}.afde-two-col{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.afde-research-nav-item{color:var(--color-text-primary);text-decoration:none}.afde-research-nav-item:hover{background:var(--color-primary-subtle)}.afde-research-nav-item.is-active{font-weight:500}@media(max-width:1279px){.afde-two-col{grid-template-columns:minmax(0,1fr)}}.afde-sticky{position:sticky;top:104px}.afde-form-actions{position:sticky;bottom:0;background:var(--color-bg-elevated);border-top:1px solid var(--color-border);padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:5}.afde-autosave{font-size:12px;color:var(--color-text-muted);display:inline-flex;align-items:center;gap:6px}.afde-form-section{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg-elevated);padding:16px}.afde-form-section+.afde-form-section{margin-top:16px}.afde-form-section h4{margin:0 0 4px;font-size:15px}.afde-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:900px){.afde-form-grid{grid-template-columns:minmax(0,1fr)}}.afde-materials-help{font-size:12px;color:var(--color-text-muted)}.afde-login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(1200px 500px at 20% -10%,rgba(9,105,218,.12),transparent),var(--color-bg-base);padding:24px}.afde-login-card{width:480px;max-width:100%;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:12px;padding:32px;box-shadow:var(--shadow-md)}.afde-example-banner{border:1px solid #b6d7ff;background:#0969da0f;border-radius:8px;padding:10px 14px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.afde-template-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.afde-template-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.afde-template-stat{border:1px solid var(--color-border);border-radius:8px;padding:12px 14px;background:var(--color-bg-base);display:flex;flex-direction:column;gap:4px}.afde-template-stat>span{color:var(--color-text-secondary);font-size:12px}.afde-template-stat>strong{color:var(--color-text-primary);font-size:22px;line-height:1.2;font-weight:700}.afde-template-disabled{border-style:dashed}.afde-template-disabled .afde-empty{padding-bottom:12px}.afde-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.afde-template-card{border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-base);padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}.afde-template-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.afde-template-card-desc{margin:0!important;font-size:13px;min-height:38px}.afde-template-card-tags{min-height:24px}.afde-template-card-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px dashed var(--color-border);padding-top:8px}.afde-template-card-meta>div{display:flex;flex-direction:column;gap:2px;min-width:0}.afde-template-card-meta span{font-size:12px;color:var(--color-text-secondary)}.afde-template-card-meta strong{font-size:13px;font-weight:600;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.afde-template-card-actions{display:flex;align-items:center;gap:4px;margin-top:auto}.afde-template-structure{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.afde-template-structure-item{border:1px solid var(--color-border);border-radius:8px;padding:8px 10px;background:var(--color-bg-base);display:flex;justify-content:space-between;gap:8px}.afde-template-structure-item span{color:var(--color-text-secondary);font-size:12px}.afde-template-structure-item strong{font-size:12px;font-weight:600;color:var(--color-text-primary)}@media(max-width:1023px){.afde-template-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:1023px){.afde-template-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
