/* Max2Me Academy (26.10.2026): попълване на учебни материали в сайта. Цветове от app.css (шампанско, слонова кост, злато). */
.material-actions{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.material-editor{max-width:820px}
.material-editor .me-note{font:14px/1.6 Arial,system-ui,sans-serif!important;color:#5f5245;max-width:680px}
.me-bar{position:sticky;top:96px;z-index:30;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:18px 0 8px;padding:12px 16px;background:#fffcf6f2;border:1px solid #e2d0b8;border-radius:18px;backdrop-filter:blur(10px)}
.me-status{margin:0!important;font-size:13px!important;color:#68472a;min-height:1.4em}
.me-status[data-state=saving]{color:#85613a}
.me-status[data-state=failed],.me-status[data-state=conflict]{color:#8b4026;font-weight:600}
.me-status[data-state=dirty]{color:#85613a;font-style:italic}
.me-buttons{display:flex;flex-wrap:wrap;gap:8px}
.mobile-app .me-buttons .button{min-height:40px;padding:9px 14px;font-size:12px}
.me-conflict{flex-basis:100%;border-top:1px solid #e2d0b8;padding-top:10px}
.me-conflict p{margin:0 0 10px!important;color:#8b4026}
/* 26.10.2026: предложение за възстановяване на локална чернова */
.me-draft{margin:12px 0 0;padding:12px 16px;border:1px solid #d9c29b;border-radius:16px;background:#f6ecdc;font-size:13px}
.me-draft[hidden]{display:none}
.me-draft p{margin:0 0 8px!important;color:#4d341c}
.me-draft .button:focus-visible{outline:3px solid #b98a47;outline-offset:2px}
.me-form{display:block;margin-top:18px}
.me-form .me-h{font:26px/1.25 Georgia,serif;color:#352344;margin:34px 0 12px;padding-bottom:8px;border-bottom:1px solid #d9c29b}
.me-form .me-h3{font:20px/1.3 Georgia,serif;color:#68472a;margin:22px 0 8px}
.me-form .me-p{color:#4a3f35;margin:8px 0}
.me-given{background:#f3eadc;border-radius:12px;padding:10px 14px}
.me-field{margin:16px 0;border:0;padding:0;min-width:0}
.me-field>label,.me-field legend{display:block;font-size:14px;font-weight:600;color:#352344;margin:0 0 7px;padding:0;line-height:1.45}
.me-field input[type=text],.me-field textarea{width:100%;box-sizing:border-box;background:#fffdf8;border-color:#d9c29b}
.me-field input[type=date]{width:min(220px,100%);box-sizing:border-box;border-color:#d9c29b}
.me-field textarea{resize:vertical;min-height:72px;overflow:hidden}
.me-field input:focus,.me-field textarea:focus{outline:2px solid #b98a47;outline-offset:1px;border-color:#b98a47}
.me-options{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.me-options label,.me-check label{display:inline-flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5;cursor:pointer;padding:6px 0;min-height:32px}
.me-check label{font-weight:400}
.me-options input,.me-check input{width:20px;height:20px;margin:2px 0 0;flex-shrink:0;accent-color:#68472a}
.me-clear{font-size:12px;border:0;background:none;color:#85613a;text-decoration:underline;cursor:pointer;padding:6px 2px}
@media(max-width:700px){
 .material-editor{padding-bottom:150px}
 .me-bar{position:fixed;top:auto;left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));margin:0;padding:10px 12px;border-radius:14px;max-height:45vh;overflow:auto;box-shadow:0 6px 22px #4d341c22}
 .me-buttons{width:100%}
 .mobile-app .me-buttons .button{flex:1 1 auto;min-height:44px}
 .me-form .me-h{font-size:22px}
 .me-options{flex-direction:column;align-items:flex-start}
}
.me-table{overflow-x:auto;margin:14px 0;border:1px solid #e2d0b8;border-radius:12px;background:#fffdf8}.me-table table{border-collapse:collapse;width:100%;font-size:13px}.me-table th,.me-table td{padding:8px 10px;border-bottom:1px solid #eadfce;text-align:left;vertical-align:top}.me-table th{background:#f3eadc;color:#352344}
.me-export-error{flex-basis:100%;margin:0!important;color:#8b4026;font-size:13px!important;font-weight:600}
