/* MAS: mentor odevleri (public/mentor-assignments.php, public/my-assignments.php, panel karti) */
.mas-wrap { display: grid; gap: 16px; max-width: 980px; }
.mas-new { padding: 0; overflow: hidden; }
.mas-new-sum { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-family: var(--hm-display); font-size: 17px; font-weight: 700; color: var(--hm-ink); }
.mas-new-sum::-webkit-details-marker { display: none; }
.mas-new-sum i { color: var(--primary); transition: transform 0.15s ease; }
.mas-new[open] .mas-new-sum i { transform: rotate(45deg); }
.mas-new > .mt-empty, .mas-form { padding: 0 20px 20px; }
.mas-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
.mas-form-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mas-field { display: grid; gap: 6px; min-width: 0; }
.mas-field > span, .mas-who legend { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.mas-field select, .mas-field input, .mas-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); font: inherit; font-size: 16px; color: var(--hm-text); }
.mas-field textarea { resize: vertical; min-height: 96px; }
.mas-field select:focus, .mas-field input:focus, .mas-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.mas-who { margin: 0; padding: 0; border: 0; gap: 8px; }
.mas-who legend { margin-bottom: 6px; padding: 0; }
.mas-radio, .mas-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--hm-text); }
.mas-radio input, .mas-check input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--primary); }
.mas-pick { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(20,33,61,0.1); border-radius: 12px; background: var(--hm-paper); min-width: 0; }
.mas-pick[hidden] { display: none; }
.mas-pick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mas-pick-tools .mt-search { flex: 1 1 180px; }
.mas-check-all { font-weight: 600; }
.mas-pick-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.mas-pick-list li[hidden] { display: none; }
.mas-pick-list .mas-check { padding: 4px 6px; border-radius: 10px; }
.mas-pick-list .mas-check > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mas-pick-list .mt-avatar { width: 34px; height: 34px; font-size: 14px; }
.mas-pick-list small { color: var(--hm-muted); }
.mas-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.mas-form-err { margin: 0; margin-inline-end: auto; font-size: 14px; font-weight: 600; color: #b4232a; }

.mas-tabs { margin-bottom: 0; }
.mas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mas-item { display: grid; gap: 12px; }
.mas-item-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.mas-item-title { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.mas-item-title h2 { font-family: var(--hm-display); font-size: 17px; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
.mas-item-title small { font-size: 13.5px; line-height: 1.45; color: var(--hm-muted); }
.mas-item-title .mas-item-sub { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mas-item-title .mas-item-sub i { font-size: 11px; opacity: .7; margin-inline-end: 2px; }
.mas-note { margin: 0; padding: 10px 14px; border-inline-start: 3px solid var(--primary); border-radius: 8px; background: var(--hm-paper); font-size: 14.5px; line-height: 1.55; color: var(--hm-text); overflow-wrap: anywhere; }
.mas-note strong { display: block; margin-bottom: 2px; font-size: 13px; color: var(--hm-muted); }
.mas-note p { margin: 0; }
.mas-due { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hm-text); }
.mas-due.is-bad { color: #b4232a; font-weight: 600; }
.mas-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.mas-bar { flex: 1 1 160px; height: 10px; border-radius: 999px; background: var(--hm-paper); overflow: hidden; }
.mas-bar > span { display: block; height: 100%; border-radius: inherit; background: #0a7250; }
.mas-detail summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--primary); }
.mas-srow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 2px; }
.mas-sname { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; color: var(--hm-ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.mas-sname .mt-avatar { width: 36px; height: 36px; font-size: 14px; }
.mas-pill-link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.mas-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--hm-paper); font-size: 13px; font-weight: 600; color: var(--hm-text); white-space: nowrap; }
.mas-pill.is-ok { background: #e6f7f0; color: #0a7250; }
.mas-pill.is-bad { background: #fdecea; color: #b4232a; }
.mas-pill.is-open { background: #fff4d1; color: #8a6100; }
.mas-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mas-item.is-done { opacity: 0.92; }

/* Ogrenci paneli karti */
.mas-dash { margin-bottom: 20px; }
.mas-dash-list { list-style: none; margin: 0; padding: 0; }
.mas-dash-list li + li { border-top: 1px solid rgba(20,33,61,0.07); }
.mas-dash-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 52px; padding: 8px 2px; color: inherit; text-decoration: none; }
.mas-dash-row strong { min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.mas-dash-row small { display: block; font-size: 13px; color: var(--hm-muted); font-weight: 400; }

@media (hover: hover) {
    .mas-pick-list .mas-check:hover, .mas-dash-row:hover { background: rgba(255,255,255,0.7); }
    .mas-dash-row:hover { background: var(--hm-paper); }
}
@media (max-width: 768px) {
    .mas-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .mas-new-sum { padding: 0 16px; }
    .mas-new > .mt-empty, .mas-form { padding: 0 16px 16px; }
    .mas-form-actions .mt-btn, .mas-item-actions .mt-btn, .mas-item-head form, .mas-item-head form .mt-btn { width: 100%; }
}
