/* RASA Phase 2 Plant Assessment Runtime — UI 1.0.5
 * UX pattern: progressive question flow / answer-linked next question.
 * Knowledge, graph and answer contracts are untouched.
 */
.rasa-p2-runtime{direction:rtl;font-family:inherit;max-width:760px;margin:0 auto;padding:14px;box-sizing:border-box;color:#263238}
.rasa-p2-header{font-size:.95rem;margin:0 0 12px;text-align:right;font-weight:700}
.rasa-p2-flow{display:flex;flex-direction:column;gap:0}
.rasa-p2-history-card{background:#f8fafb;border:1px solid #d9e2e7;border-radius:14px;padding:13px 15px;margin:0 0 8px;box-sizing:border-box;opacity:.92}
.rasa-p2-history-title{font-size:.92rem;line-height:1.75;font-weight:700;color:#4d5960}
.rasa-p2-history-answer{display:inline-block;margin-top:7px;padding:7px 11px;border-radius:10px;background:#edf6fa;color:#17627a;font-size:.9rem;line-height:1.6}
.rasa-p2-related{display:flex;align-items:center;gap:8px;margin:2px 12px 9px;color:#7a858b;font-size:.86rem;line-height:1.6}
.rasa-p2-related:before{content:"";display:block;width:3px;height:28px;border-radius:3px;background:#c8d9df}
.rasa-p2-related span{font-weight:600}
.rasa-p2-current-card{border:1px solid #cbdde4;border-radius:17px;padding:18px;background:#fff;box-sizing:border-box;box-shadow:0 2px 10px rgba(30,55,65,.04)}
.rasa-p2-current-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef7f1;color:#2f7040;font-size:.78rem;font-weight:700;margin-bottom:8px}
.rasa-p2-card h2{font-size:1.15rem;line-height:1.85;margin:0 0 12px;font-weight:800;color:#38434a}
.rasa-p2-help{margin:0 0 14px;opacity:.75;line-height:1.8}
.rasa-p2-select{width:100%;min-height:52px;border:1px solid #b8ccd6;border-radius:12px;padding:0 14px;font:inherit;background:#fff;box-sizing:border-box}
.rasa-p2-options{display:grid;gap:10px}
.rasa-p2-option{display:flex;gap:11px;align-items:center;border:1px solid #c9dce5;border-radius:13px;padding:13px 14px;cursor:pointer;line-height:1.7;background:#fff;box-sizing:border-box;transition:.15s ease}
.rasa-p2-option:hover{border-color:#a8c4cf;background:#fbfdfe}
.rasa-p2-option:has(input:checked){border-color:#4193ad;background:#eef8fb;box-shadow:0 0 0 1px rgba(65,147,173,.08)}
.rasa-p2-option input{width:20px;height:20px;flex:0 0 auto;margin:0}
.rasa-p2-option span{flex:1}
.rasa-p2-message{min-height:24px;margin:10px 0;line-height:1.8}
.rasa-p2-message.error,.rasa-p2-error{border-radius:12px;padding:10px;background:#fff1f1}
.rasa-p2-message.warning{border-radius:12px;padding:10px;background:#fff8e7}
.rasa-p2-message.success{border-radius:12px;padding:10px;background:#eef9f0}
.rasa-p2-message.running{border-radius:12px;padding:10px;background:#f4f8fa}
.rasa-p2-actions{margin-top:13px}
.rasa-p2-main-actions{display:flex;flex-direction:row;direction:rtl;gap:9px}
.rasa-p2-main-actions button{flex:0 1 auto;min-height:48px;border:0;border-radius:12px;padding:10px 20px;font:inherit;cursor:pointer;background:#ff8a00;color:#fff}
.rasa-p2-main-actions button.primary{min-width:126px;font-weight:800;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.rasa-p2-main-actions button:not(.primary){background:#fff;color:#5b6266;border:1px solid #d2dadd}
.rasa-p2-secondary-actions{display:flex;justify-content:flex-start;margin-top:8px}
.rasa-p2-actions button.secondary{font-size:.88em;opacity:.82;border:1px solid #d7dde0;border-radius:10px;padding:8px 13px;background:#fff;color:#61686d;font:inherit;cursor:pointer}
.rasa-p2-result{margin-top:12px;padding:14px;border-radius:12px;border:1px solid #b9d7c0;background:#f6fbf7}
.rasa-p2-error small{display:block;margin-top:8px;opacity:.65}
@media(max-width:600px){
  .rasa-p2-runtime{padding:9px}
  .rasa-p2-current-card{padding:15px}
  .rasa-p2-main-actions{width:100%}
  .rasa-p2-main-actions button{flex:1 1 0}
  .rasa-p2-history-card{padding:11px 13px}
}
