@layer legacy {

/* V0.9.8 - 一日判断全阶段交互升级；只修改展现，原字段和原判逻辑不变 */
#screen[data-yx98-phase] .phase-header{margin:0 0 17px;padding-bottom:15px;border-bottom:1px solid #e7eee9;align-items:center}
#screen[data-yx98-phase] .phase-header h2{font-size:21px;letter-spacing:-.03em;color:#284a38}
#screen[data-yx98-phase] .timeline{background:#f5f8f5;border-radius:12px;padding:11px 15px;margin:9px 0 12px}
#screen[data-yx98-phase] .step .dot{border-radius:10px}
#screen[data-yx98-phase] .step.selected .dot{background:#e6f3e9;border-color:#83ac90;color:#245b3d}
#screen[data-yx98-phase] .step.selected label{font-weight:800;color:#285a40}
#screen[data-yx98-phase] .v04-question,#screen[data-yx98-phase] .v04-simulation{border-color:#e2ebe3;box-shadow:0 6px 24px #345b3710;border-radius:18px}
#screen[data-yx98-phase] .v04-question .field textarea,#screen[data-yx98-phase] .v04-simulation .field textarea{min-height:53px}
#screen[data-yx98-phase="post"] .ai-panel{border:1px solid #dce9df;border-radius:17px;background:linear-gradient(135deg,#f6faf7,#fff 65%);box-shadow:0 10px 26px #2d5a3912;padding:23px}
#screen[data-yx98-phase="post"] .ai-steps{border:1px solid #e2eae4;background:#fff;border-radius:12px;padding:13px 14px}
#screen[data-yx98-phase="post"] .ai-panel .button{border-radius:10px}
.yx98-form{--yxc:#315b43;--yxf:#4b7562;--yxl:#dfeae1;--yxbg:#f8fbf8;display:flex;flex-direction:column;gap:15px;width:100%;color:#315145}
.yx98-form *{box-sizing:border-box}
.yx98-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid #dce9df;border-radius:13px;background:linear-gradient(115deg,#f1f8f2 0%,#fbfdfb 88%);padding:13px 16px;margin:-2px 0 2px}
.yx98-intro-copy{font-size:12px;color:#648071;line-height:1.7;max-width:710px}
.yx98-intro-copy strong{display:block;font-size:13px;color:#2d553d;margin-bottom:2px}
.yx98-intro-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #cce1d0;border-radius:999px;padding:7px 11px;background:#fff;color:#456c53;font-size:11px;font-weight:750}
.yx98-intro-badge[data-completion="partial"]{border-color:var(--yx-line);color:var(--yx-muted);background:#fffbf4}
.yx98-intro-badge[data-completion="done"]{border-color:#a7d4b0;color:#327146;background:#f2fbf3}
.yx98-form .tpl-section.yx98-section{border:1px solid #e0e9e1;border-radius:18px;background:#fff;box-shadow:0 5px 22px rgba(34,65,39,.03);padding:0;margin:0;overflow:hidden;min-width:0;display:block}
.yx98-form .yx98-sec-head{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px 21px 15px;background:linear-gradient(102deg,#f7faf7,#fff 78%);border-bottom:1px solid #edf1ec}
.yx98-form .yx98-sec-head h3{margin:0;font-size:16px;font-weight:780;color:#2a503d;line-height:1.5}
.yx98-form .yx98-sec-head p{margin:3px 0 0;color:#82948a;font-size:11px;line-height:1.65}
.yx98-sec-index{font-size:11px;font-weight:790;letter-spacing:.06em;color:#679273;background:#eaf4eb;border:1px solid #dceade;border-radius:9px;min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.yx98-sec-identity{display:flex;align-items:center;gap:10px}
.yx98-soft-status{font-size:11px;line-height:1.5;color:#7a9582;background:#f1f7f2;border:1px solid #dce9de;border-radius:999px;padding:5px 10px;white-space:nowrap}
.yx98-form .yx98-stage-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:18px}
.yx98-form .yx98-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;min-width:0}
.yx98-form .yx98-panel-grid.one{grid-template-columns:minmax(0,1fr)}
.yx98-form .yx98-panel-grid .field{min-width:0;margin:0}
.yx98-form .yx98-panel-grid .field label{font-weight:720;color:#405e4c;font-size:12px;margin:0 0 6px}
.yx98-form .yx98-panel-grid .field small{font-size:10.5px;color:#98a89d;margin:-1px 0 6px;line-height:1.55}
.yx98-form .yx98-panel-grid .field textarea,.yx98-form .yx98-panel-grid .field input:not([type="hidden"]){width:100%;border:none;border-radius:0;background:transparent;border-bottom:1.5px solid #dce8dd;padding:8px 1px;min-height:42px;box-shadow:none;outline:0;color:#294635;font-size:13px;line-height:1.6;transition:border-color .16s}
.yx98-form .yx98-panel-grid .field textarea:focus,.yx98-form .yx98-panel-grid .field input:not([type="hidden"]):focus{border-bottom-color:#76a583;box-shadow:none}
.yx98-form .yx98-panel-grid .field textarea::placeholder{color:#a8b7aa}
.yx98-form .yx98-panel-grid .field textarea{max-height:170px;resize:vertical}
.yx98-form .yx98-panel-grid .field.yx98-narrative textarea{min-height:65px;border:1px solid #e0ebe2;border-radius:10px;background:#f9fbf9;padding:10px 12px}
.yx98-form .yx98-panel-grid .field.yx98-narrative textarea:focus{border-color:#96bea2}
.yx98-form .yx98-panel-grid .field.yx98-wide{grid-column:1/-1}
.yx98-form .choice-group{display:flex;flex-wrap:wrap;gap:6px;padding:0;border:0;background:transparent}
.yx98-form .choice-group .choice{border:1px solid #e0eae0;border-radius:9px;background:#fff;color:#728678;min-height:36px;line-height:1.35;padding:8px 11px;font-size:12px;font-weight:630;box-shadow:none;transition:background .14s ease,border-color .14s ease}
.yx98-form .choice-group .choice:hover{background:#f5faf5;border-color:#c3d9c8}
.yx98-form .choice-group .choice.chosen{background:#e6f3e9;border-color:#a6d0b1;color:#326d45;font-weight:800}
.yx98-form .yx98-group-title{font-size:11px;letter-spacing:.04em;font-weight:800;color:#779383;display:flex;align-items:center;gap:8px}
.yx98-form .yx98-group-title:after{content:"";flex:1;height:1px;background:#ebf0ec}
.yx98-form .yx98-validation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.yx98-validation-cell{min-width:0;background:#fbfdfb;border:1px solid #e3eee5;border-radius:13px;padding:14px 15px}
.yx98-validation-cell>div:first-child{display:flex;justify-content:space-between;gap:9px;align-items:center;margin-bottom:9px}
.yx98-validation-cell .yx98-letter{color:#427d52;font-weight:800;font-size:11px;background:#edf7ef;border-radius:6px;padding:3px 7px}
.yx98-validation-cell .yx98-pre-condition{font-size:12px;color:#61786a;line-height:1.6;overflow-wrap:anywhere;margin:2px 0 13px;min-height:19px;white-space:pre-wrap}
.yx98-validation-cell .field{margin:0}
.yx98-validation-cell .field small{display:none}
.yx98-validation-cell .field label{font-size:11px;color:#728a77;margin-bottom:7px}
.yx98-mini-count{font-size:11px;color:#8b9b8c;white-space:nowrap}
.yx98-progress{height:4px;border-radius:999px;background:#e6eee7;overflow:hidden;width:93px}
.yx98-progress>i{display:block;height:100%;background:#76ac82;border-radius:inherit;width:0%;transition:width .16s}
.yx98-form .yx98-notice{background:#f5f9f5;border:1px dashed #dbe8dd;padding:11px 13px;border-radius:10px;color:#799083;font-size:11px;line-height:1.7}
.yx98-form .yx98-noon-empty{display:none;border:1px dashed #d6e7d8;padding:24px 16px;border-radius:13px;background:#f9fcf9;text-align:center;color:#7d9182;font-size:12px;line-height:1.85}
.yx98-form .yx98-noon-empty strong{display:block;color:#4f7960;font-size:14px}
.yx98-form.yx98-no-trigger .yx98-noon-empty{display:block}
.yx98-form.yx98-no-trigger .yx98-noon-body{display:none}
.yx98-form.yx98-no-trigger .form-actions button:nth-child(2){display:none}
.yx98-form .yx98-noon-trigger{padding:16px 22px 16px}
.yx98-form .yx98-noon-trigger .field small{color:#96a898;font-size:11px}
.yx98-form .yx98-noon-trigger .choice-group{margin:9px 0 0}
.yx98-form .yx98-bottom-note{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;color:#76917f;background:#f5f9f5;border:1px solid #e4eee5;padding:9px 12px;border-radius:10px}
.yx98-form .form-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin:0;padding:16px 4px 0;border-top:1px solid #e5eee7}
.yx98-form .form-actions:before{content:"草稿需手动保存 · 正式提交后锁定";font-size:11px;color:#8d9e93;margin-right:auto}
.yx98-form .form-actions .button{border-radius:10px;padding:10px 18px;min-height:40px}
.yx98-form .yx98-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 22px;padding:19px 22px 23px}
.yx98-form .yx98-market-grid>.field{margin:0;min-width:0}
.yx98-form .yx98-market-grid>.field label{font-size:12px;color:#3d614b;font-weight:720}
.yx98-form .yx98-market-grid>.field textarea{min-height:42px;max-height:160px;resize:vertical;border:none;border-bottom:1.5px solid #dce8df;box-shadow:none;border-radius:0;padding:8px 1px;background:transparent;color:#294a37;line-height:1.65}
.yx98-form .yx98-market-grid>.field textarea:focus{border-bottom-color:#70a37e;box-shadow:none}
.yx98-form .yx98-market-grid>.field.yx98-wide{grid-column:1/-1}
.yx98-form .yx98-market-grid>.field small{color:#94a79a;font-size:10.5px}
.yx98-form .yx98-market-grid .choice-group{margin-top:8px}
.yx98-form .yx98-tail-detail{padding:16px 21px 20px}
.yx98-form .yx98-tail-detail>.field{margin:0 0 12px}
.yx98-form .yx98-tail-detail>.field label{font-size:12px;font-weight:780;color:#41674f}
.yx98-form .v04-row-panel{margin-top:13px;background:#fbfcfb;border:1px solid #e5ece5;padding:14px;border-radius:12px}
.yx98-form .v04-tablewrap{overflow-x:auto;border:1px solid #e4ece6;border-radius:9px;background:white}
.yx98-form table.v04-table{width:100%;min-width:710px}
.yx98-form table.v04-table th{background:#f3f8f4;font-size:11px;color:#5f826a;white-space:nowrap}
.yx98-form table.v04-table input,.yx98-form table.v04-table select{min-height:34px;border:1px solid #dce7e0;background:#fff;border-radius:7px;padding:6px 8px;font-size:12px;color:#3b5545}
.yx98-form .v04-add{margin-top:11px;background:#e8f3e9;color:#396b48}
.yx98-form .v04-discipline{padding:16px 20px 19px}
.yx98-form .v04-discipline .v04-disc-fields{margin-top:13px;padding:13px;background:#fafcf9;border:1px solid #e4ebe4;border-radius:11px}
.yx98-form .yx98-locked-logic{border-left:3px solid #9fc4a7;background:#f7faf7;color:#526f5b}
.yx98-form .yx98-locked-logic strong{color:#3a6748}
.yx98-form .tpl-section.yx98-section[hidden]{display:none}
.yx98-form .yx98-tail-detail [hidden]{display:none}
@media(max-width:820px){.yx98-form .yx98-validation-grid,.yx98-form .yx98-market-grid,.yx98-form .yx98-panel-grid{grid-template-columns:1fr}.yx98-form .yx98-market-grid .field.yx98-wide,.yx98-form .yx98-panel-grid .field.yx98-wide{grid-column:auto}.yx98-form .yx98-sec-head{padding:14px 15px}.yx98-form .yx98-stage-body{padding:16px 15px}.yx98-form .yx98-market-grid{padding:16px 15px}.yx98-form .yx98-tail-detail{padding:14px}.yx98-form .yx98-validation-cell{padding:12px}.yx98-form .yx98-noon-trigger{padding:14px 15px}.yx98-form .form-actions:before{width:100%}.yx98-form .form-actions{justify-content:flex-start}.yx98-form .form-actions .button{flex:1}.yx98-intro{align-items:flex-start}.yx98-form .yx98-sec-head h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){.yx98-form *,#screen[data-yx98-phase] *{transition:none}}


}
