.saber-history-bar{position:relative;background:#e7eef6;border-radius:6px;overflow:hidden;min-height:30px;margin:9px 0}.saber-history-bar>span{position:absolute;left:0;top:0;bottom:0;background:#b9d7ee}.saber-history-bar>strong{position:relative;display:block;padding:6px 10px;font-size:.82rem;color:#12395c}.saber-plan-body{white-space:pre-wrap;line-height:1.7}
.saber-shell{max-width:1200px;margin:auto}
.saber-generator-layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:1.1rem;align-items:start;margin-top:1rem}
.saber-men-select,.saber-attachments{margin:.85rem 0;padding:.75rem;border:1px solid #ccddeb;border-radius:10px;background:#f7fbff}
.saber-attachment-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.5rem}.saber-attachment-row img{width:64px;height:50px;object-fit:contain;border-radius:5px;background:#fff}.saber-attachment-row label{flex:1 1 135px;min-width:0}.saber-attachments input[type=file]{max-width:100%}
.saber-studio-config,.saber-studio-preview{min-width:0;background:#fff;border:1px solid #dbe5f0;border-radius:16px;padding:clamp(.9rem,2vw,1.5rem)}
.saber-studio-config .saber-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.saber-studio-config select,.saber-studio-config input{min-width:0;width:100%;background:#f8fafc}
.saber-item-preview{overflow-wrap:anywhere}.saber-preview-option{margin:.55rem 0;padding:.7rem;border:1px solid #dce5ee;border-radius:10px;background:#f8fafc}
.saber-preview-option.correct{background:#ecfdf5;border-color:#a7e7c9;color:#14533b}
.saber-preview-option small{display:block;margin-top:.35rem;color:#334155}
.saber-preview-table{overflow:auto}.saber-preview-table table{width:100%;border-collapse:collapse}.saber-preview-table th,.saber-preview-table td{padding:.45rem;border:1px solid #dce5ee;text-align:left}
.saber-semaphore[data-band=high]{background:#fef2f2;color:#991b1b}.saber-semaphore[data-band=warning]{background:#ffedd5;color:#9a3412}.saber-semaphore[data-band=medium]{background:#fffbeb;color:#92400e}.saber-semaphore[data-band=low]{background:#ecfdf5;color:#166534}
@media(max-width:1050px){.saber-generator-layout{grid-template-columns:1fr}}@media(max-width:580px){.saber-studio-config .saber-grid{grid-template-columns:1fr}}
.saber-create-card{border:2px solid #2574a6;background:#f7fbff}
.saber-shell .network-check{display:flex;align-items:flex-start;gap:10px;padding:6px 0;font-weight:500}
.saber-shell .network-check input{width:auto;min-height:0;margin-top:3px;flex-shrink:0}
.saber-shell .network-check span{min-width:0;overflow-wrap:anywhere}
.saber-steps{display:flex;flex-wrap:wrap;gap:12px 30px;padding:12px 25px;background:#eef5fb;border-radius:10px;font-size:.85rem;color:#234e70}
.saber-visual{text-align:center;margin:15px 0}.saber-visual img{max-width:100%;max-height:380px;object-fit:contain}.saber-visual figcaption{font-size:.85rem;color:#4d6475}
.saber-shell h1{font-size:clamp(1.7rem,3vw,2.5rem)}
.saber-shell h2{font-size:1.25rem;margin:0 0 14px}
.saber-shell h3{font-size:1.05rem;margin:0 0 10px}
.saber-shell .card{padding:22px;margin:18px 0}
.saber-shell label{display:grid;gap:7px;font-size:.86rem;font-weight:650}
.saber-shell input,.saber-shell textarea,.saber-shell select{width:100%;box-sizing:border-box;border:1px solid #c4d3e5;border-radius:10px;background:white;color:#173753;padding:11px;font:inherit;min-width:0}
.saber-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.saber-full{grid-column:1/-1}
.saber-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:15px 0}
.saber-actions .button{padding:10px 15px;font-size:.88rem;min-height:42px}
.saber-status{padding:11px 15px;background:#ecf5ff;border:1px solid #bad3ec;border-radius:10px;font-size:.9rem;white-space:pre-line}
.saber-status.error{background:#fff0ee;color:#8c2019;border-color:#e7b0a9}
.saber-meta{color:#536d86;font-size:.87rem;line-height:1.55}
.saber-badge{display:inline-block;border-radius:20px;background:#edf2f8;padding:4px 10px;font-size:.75rem;margin-left:8px}
.saber-exams{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.saber-exam{border:1px solid #cad9e8;border-radius:12px;padding:16px;background:#fff;text-align:left;color:#183955;cursor:pointer}
.saber-exam strong{display:block;margin-bottom:6px}
.saber-nav{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid #cad9e8;padding-bottom:12px;margin:14px 0}
.saber-nav button{border:1px solid #c1d3e6;border-radius:20px;padding:9px 16px;background:white;color:#16466e;cursor:pointer}
.saber-nav button.active{background:#0b4e80;color:white}
.saber-slot{border:1px solid #cad9e8;border-radius:12px;padding:17px;margin:12px 0;background:#f8fbff}
.saber-slot select{margin-bottom:12px}
.saber-question-list{display:grid;gap:8px;margin:14px 0}
.saber-question-list button{padding:12px;border:1px solid #c6d8e8;border-radius:9px;text-align:left;background:#fff;color:#193c58;cursor:pointer}
.saber-question-list small{display:block;color:#60788d;margin-top:5px}
.saber-option{border-top:1px solid #d8e2eb;margin:15px 0;padding-top:12px}
.saber-shell details{margin:12px 0}.saber-shell summary{cursor:pointer;font-weight:650;color:#134e7c;padding:8px 0}
.saber-shell table{width:100%;border-collapse:collapse;font-size:.85rem}
.saber-shell th,.saber-shell td{padding:10px;text-align:left;border-bottom:1px solid #d8e2eb;vertical-align:top}
.saber-shell th{background:#edf3fa}
.saber-reference{max-height:230px;overflow:auto;padding:12px;background:#f0f5f8;white-space:pre-line;font-size:.84rem;line-height:1.5}
.saber-shell [hidden]{display:none!important}
.saber-student-question{padding:17px;border:1px solid #c6d8e8;border-radius:12px;margin:14px 0}
.saber-student-question label{display:flex;align-items:flex-start;gap:10px;font-weight:400;padding:10px;border:1px solid #d9e5ee;border-radius:8px;margin:7px 0;cursor:pointer}
.saber-student-question input[type=radio]{width:auto;margin-top:4px}
.saber-context{white-space:pre-wrap;padding:13px;background:#f1f6fa;border-radius:9px;margin:9px 0;line-height:1.65}
.saber-clock{position:sticky;top:8px;z-index:5;background:#103d69;color:white;padding:13px;border-radius:10px;display:flex;justify-content:space-between;gap:12px}
.saber-shell button:disabled{opacity:.6;cursor:wait}
.saber-shell .button.danger{background:#fff0eb;color:#8b271c;border:1px solid #e2b7ad}
.saber-shell button:focus-visible,.saber-shell input:focus-visible,.saber-shell select:focus-visible,.saber-shell textarea:focus-visible{outline:3px solid #e9b600;outline-offset:2px}
@media(max-width:650px){.saber-grid{grid-template-columns:1fr}.saber-shell .card{padding:15px}.saber-actions>*{max-width:100%}.saber-shell .table-scroll{overflow-x:auto}.saber-shell h1{line-height:1.2}}
