.generation-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 14px}.generation-mode label{cursor:pointer}.generation-mode input{position:absolute;opacity:0}.generation-mode span{display:flex;gap:8px;align-items:baseline;padding:14px 16px;border:1px solid #d7e2dd;border-radius:14px;background:#fff;transition:.2s}.generation-mode b{color:#123a32}.generation-mode small{color:#73857f}.generation-mode input:checked+span{border-color:#148a72;background:#edf8f4;box-shadow:inset 0 0 0 1px #148a72}.pipeline-steps{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:12px 14px;margin-bottom:14px;border-radius:14px;background:#f4f7f6;color:#536963;font-size:12px;overflow-x:auto}.pipeline-steps span{white-space:nowrap}.pipeline-steps b{color:#148a72;margin-right:5px}.pipeline-steps i{font-style:normal;color:#a2b2ad}.standard-fields{margin-top:12px}.standard-fields label{display:flex;justify-content:space-between;margin:0 2px 8px;color:#173e35}.standard-fields small{color:#80918c}.standard-fields textarea,.diff-context textarea{width:100%;min-height:130px;box-sizing:border-box;border:1px solid #d6e1dc;border-radius:14px;padding:14px;font:inherit;resize:vertical}.diff-context{margin:12px 0;color:#557069}.diff-context summary{cursor:pointer;font-weight:700}.diff-context textarea{margin-top:10px;min-height:100px}.pipeline-result{margin:0 0 18px;padding:18px;border:1px solid #d7e3de;border-radius:18px;background:linear-gradient(135deg,#f4fbf8,#f8f9ff)}.pipeline-result-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:14px}.pipeline-result-head b{display:block;font-size:18px;color:#123a32}.pipeline-result-head span{font-size:12px;color:#6e817b}.pipeline-result-head em{font-style:normal;color:#148a72;font-weight:700}.pipeline-stage-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.pipeline-stage{min-width:0;padding:12px;border-radius:12px;background:#fff;border:1px solid #dce6e2}.pipeline-stage small{display:block;color:#148a72;font-weight:800;margin-bottom:5px}.pipeline-stage b{display:block;font-size:13px;color:#173b34;line-height:1.35}.pipeline-stage span{display:block;margin-top:7px;color:#72847e;font-size:11px;line-height:1.35}.pipeline-insights{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:12px}.pipeline-insights article{padding:12px 14px;border-radius:12px;background:#fff}.pipeline-insights small{color:#7c8c87}.pipeline-insights b{display:block;margin-top:4px;color:#173b34}.pipeline-insights .attention b{color:#ad5b2d}@media(max-width:900px){.pipeline-stage-grid{grid-template-columns:repeat(3,1fr)}.pipeline-insights{grid-template-columns:1fr}.generation-mode{grid-template-columns:1fr}.pipeline-result-head{align-items:start;flex-direction:column}}@media(max-width:560px){.pipeline-stage-grid{grid-template-columns:repeat(2,1fr)}.pipeline-steps{justify-content:flex-start}.generation-mode span{align-items:flex-start;flex-direction:column}}
.cloud-history{display:grid;grid-template-columns:1fr auto;gap:15px;margin-top:22px;padding:27px 29px;border:1px solid #cfe0da;border-radius:20px;background:linear-gradient(145deg,#f7fcfa,#fff)}.cloud-history h2{margin:4px 0 0;font-size:23px}.cloud-history p{margin:2px 0;color:#70837d}.generation-history-list{grid-column:1/3;display:grid}.generation-history-list>p{padding:18px 0;border-top:1px solid #dbe5e1}.generation-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 0;border-top:1px solid #dbe5e1}.generation-history-list article>div{min-width:0;display:grid;gap:4px}.generation-history-list b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#153d34}.generation-history-list small{color:#758781}.generation-history-meta{display:flex;gap:7px;flex-wrap:wrap}.generation-history-meta span{padding:3px 7px;border-radius:7px;background:#edf5f2;color:#397064;font-size:11px;font-weight:700}.generation-history-actions{display:flex;gap:8px}.generation-history-actions button{padding:8px 11px;border:1px solid #c8d9d3;border-radius:9px;background:#fff;color:#176d5b;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.generation-history-actions button[data-delete-generation]{color:#9b4d44}.generation-history-list .history-error{color:#a24e42}@media(max-width:680px){.cloud-history{padding:20px 17px}.generation-history-list article{grid-template-columns:1fr}.generation-history-actions{justify-content:flex-start}}
.cloud-history[hidden]{display:none!important}
.standard-fields[hidden],#aiPrompt[hidden]{display:none!important}.document-field-head{display:flex;justify-content:space-between;gap:14px;margin:0 2px 8px;color:#173e35}.document-field-head small{color:#80918c}.document-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:15px;border:1px dashed #a9c8bd;border-radius:15px;background:#f7fbf9}.document-upload>input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.document-upload>label{grid-row:1/3;display:flex!important;flex-direction:column;justify-content:center!important;align-items:flex-start;min-height:62px;margin:0!important;padding:0 16px;border:1px solid #bcd3cb;border-radius:12px;background:#fff;cursor:pointer}.document-upload>label b{color:#137862}.document-upload>label small{margin-top:3px;color:#7c8e88}.document-file-meta{color:#536c64;font-size:13px}.document-upload>button{justify-self:start;padding:5px 9px;border:0;border-radius:7px;background:#eaf4f0;color:#17745f;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.document-upload>button[hidden]{display:none}@media(max-width:680px){.document-field-head{flex-direction:column;gap:3px}.document-upload{grid-template-columns:1fr}.document-upload>label{grid-row:auto}.document-file-meta{margin-top:3px}}
.pipeline-steps button{flex:1;min-width:116px;padding:8px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#536963;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer;text-align:left}.pipeline-steps button:hover,.pipeline-steps button.active{border-color:#8fc4b5;background:#fff;color:#154b3f}.pipeline-steps button.completed{background:#e8f6f1;color:#11745f}.pipeline-steps button.running{box-shadow:inset 0 0 0 1px #178a71}.pipeline-debug-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-3px 0 14px;padding:12px 14px;border:1px solid #d7e3de;border-radius:14px;background:#fff}.pipeline-debug-bar>div{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:5px 10px}.pipeline-debug-bar small{color:#16816b;font-weight:800}.pipeline-debug-bar b{color:#173c34}.pipeline-debug-bar span{color:#74857f;font-size:12px}.pipeline-debug-bar button{padding:9px 13px;border:0;border-radius:10px;background:#173f36;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.pipeline-skill-panel{margin:-3px 0 14px;padding:16px;border:1px solid #b9d7cd;border-radius:14px;background:linear-gradient(135deg,#f4fbf8,#fff)}.pipeline-skill-panel[hidden]{display:none}.pipeline-skill-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}.pipeline-skill-head b{color:#143d34}.pipeline-skill-head span{color:#16816b;font-size:12px;font-weight:800}.pipeline-skill-contract{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.pipeline-skill-contract div{padding:10px;border-radius:10px;background:#fff}.pipeline-skill-contract small{display:block;color:#7b8c86}.pipeline-skill-contract strong{display:block;margin-top:3px;color:#244c43;font-size:12px}.pipeline-skill-output{max-height:280px;margin:0;padding:13px;border-radius:10px;background:#123a32;color:#d9eee7;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto;white-space:pre-wrap}@media(max-width:800px){.pipeline-debug-bar{align-items:flex-start;flex-direction:column}.pipeline-debug-bar>div{grid-template-columns:1fr}.pipeline-skill-contract{grid-template-columns:1fr}.pipeline-debug-bar button{width:100%}}

.pipeline-advanced{margin:0 0 14px;border:1px solid #d8e4df;border-radius:14px;background:#f7faf9}.pipeline-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;list-style:none;cursor:pointer}.pipeline-advanced>summary::-webkit-details-marker{display:none}.pipeline-advanced>summary span{display:grid;gap:2px}.pipeline-advanced>summary b{color:#214d43;font-size:13px}.pipeline-advanced>summary small{color:#74857f;font-size:11px}.pipeline-advanced>summary i{color:#16816b;font-style:normal;font-size:18px;transition:transform .2s}.pipeline-advanced[open]>summary i{transform:rotate(180deg)}.pipeline-advanced-body{padding:0 12px 12px}.pipeline-advanced .pipeline-steps{margin:0 0 10px}.pipeline-advanced .pipeline-debug-bar{margin:0}.pipeline-advanced .pipeline-skill-panel{margin:10px 0 0}@media(max-width:680px){.pipeline-advanced>summary{padding:10px 11px}.pipeline-advanced>summary small{max-width:245px}.pipeline-advanced-body{padding:0 8px 8px}}
.pipeline-skill-output{max-height:none;padding:15px;background:#f7faf9;color:#173d34;font:inherit;overflow:visible;white-space:normal}.skill-empty{padding:20px;text-align:center;color:#71847e}.skill-score{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:13px 15px;border:1px solid #d9e5e1;border-radius:12px;background:#fff}.skill-score strong{font:700 28px/1 Georgia,serif;color:#167b67}.skill-score span{color:#657a73}.skill-score em{margin-left:auto;padding:5px 9px;border-radius:999px;font-style:normal;font-size:11px;font-weight:800}.skill-score em.attention{background:#fff1e7;color:#a95422}.skill-score em.passed{background:#e8f7f1;color:#14735f}.skill-score.compact{margin-bottom:10px}.skill-list{display:grid;gap:8px}.skill-list article{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;padding:11px 12px;border:1px solid #dce7e3;border-radius:11px;background:#fff}.skill-list article.passed{grid-template-columns:1fr}.skill-list small{color:#9a5a31;font-weight:800}.skill-list b{display:block;margin:2px 0;color:#173e35;font-size:13px}.skill-list p,.skill-card-grid p{margin:3px 0 0;color:#667a74;font-size:12px;line-height:1.55}.skill-index{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e9f5f1;color:#147762;font-size:11px;font-weight:800}.risk-level{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:11px;font-weight:900}.risk-level.high{background:#ffe8e2;color:#a63f2e}.risk-level.medium{background:#fff2d8;color:#94651c}.skill-source{margin-top:10px;color:#60766f}.skill-source summary{cursor:pointer;font-size:12px;font-weight:800}.skill-source pre{max-height:180px;margin:8px 0 0;padding:12px;border-radius:10px;background:#123a32;color:#d9eee7;overflow:auto;white-space:pre-wrap}.skill-summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.skill-summary-row span{padding:11px 12px;border:1px solid #dae6e2;border-radius:11px;background:#fff}.skill-summary-row small{display:block;color:#72867f}.skill-summary-row b{display:block;margin-top:3px;color:#173e35}.skill-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.skill-card-grid article{padding:12px;border:1px solid #dbe7e3;border-radius:11px;background:#fff}.skill-card-grid small{color:#177660;font-weight:800}.skill-card-grid b{display:block;margin:5px 0 2px}.skill-card-grid em{display:block;margin-top:8px;color:#6f817c;font-size:11px;font-style:normal}.skill-case-preview{display:grid;gap:6px}.skill-case-preview span{display:flex;gap:9px;padding:8px 10px;border-radius:9px;background:#fff;color:#526b64;font-size:12px}.skill-case-preview b{min-width:84px;color:#14745f}.skill-delivery-note{margin:0;padding:13px;border-radius:10px;background:#eaf6f2;color:#225d50}.skill-next{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #d5e3de}.skill-next span{color:#71847e;font-size:12px}.skill-next button{padding:9px 13px;border:0;border-radius:9px;background:#163f35;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}@media(max-width:700px){.skill-summary-row,.skill-card-grid{grid-template-columns:1fr}.skill-next{align-items:stretch;flex-direction:column}.skill-next button{width:100%}}
