/* СКГА Портфолио 5.3.9.58.33 — только оформление «Мои студенты». */
.ms32.ms31 { display: grid; gap: 12px; min-width: 0; }
/* Header must grow with its description; do not let older global header rules clip it. */
.ms32.ms31 > .ms31-head {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; box-sizing: border-box; height: auto !important; min-height: 0 !important;
  overflow: visible !important; padding: 13px 18px 15px; text-align: center;
  position: relative; margin: 0;
}
.ms32.ms31 > .ms31-head .portfolio-kicker,
.ms32.ms31 > .ms31-head h2,
.ms32.ms31 > .ms31-head p {
  position: static !important; transform: none !important; float: none !important;
  display: block; width: 100%; max-width: 850px; margin: 0 !important;
  padding: 0 !important; box-sizing: border-box;
}
.ms32.ms31 > .ms31-head .portfolio-kicker { font-size: 10px; letter-spacing: .1em; line-height: 1.4; }
.ms32.ms31 > .ms31-head h2 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; }
.ms32.ms31 > .ms31-head p { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ms32.ms31 > .ms31-filters {
  display: grid; grid-template-columns: minmax(180px, 1.65fr) minmax(150px, .95fr) minmax(190px, 1.2fr) auto;
  align-items: end; gap: 10px; margin: 0; padding: 12px 14px;
}
.ms32.ms31 > .ms31-filters label { min-width:0; margin:0; gap:5px; line-height:1.3; }
.ms32.ms31 > .ms31-filters input,
.ms32.ms31 > .ms31-filters select,
.ms32.ms31 > .ms31-filters button { width:100%; min-width:0; height:40px; min-height:40px; box-sizing:border-box; }
.ms32.ms31 > .ms31-filters button { width:auto; padding: 0 14px; }
.ms32.ms31 > .ms31-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:42px; margin:0; padding:2px 0; flex-wrap:wrap;
}
.ms32.ms31 > .ms31-toolbar #ms31State { flex:1 1 220px; line-height:1.5; }
.ms32.ms31 .ms32-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex: 0 1 auto; flex-wrap:wrap; }
.ms32.ms31 .ms32-actions button { min-height:38px; padding: 8px 13px; line-height:1.25; white-space:normal; }
.ms32.ms31 .ms32-actions #ms32AllSend:not(:disabled) { background:#771111; color:#fff; border-color:#771111; }
.ms32.ms31 .ms32-actions #ms32AllSend:not(:disabled):hover { background:#8e1919; border-color:#8e1919; }
.ms32.ms31 .ms32-actions button:disabled { opacity:.52; cursor:not-allowed; }
.ms32.ms31 > #ms31Result { min-width:0; }
@media (max-width: 1050px) {
  .ms32.ms31 > .ms31-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ms32.ms31 > .ms31-filters button { width:100%; }
}
@media (max-width: 670px) {
  .ms32.ms31 > .ms31-head { padding:12px 14px 14px; }
  .ms32.ms31 > .ms31-filters { grid-template-columns:minmax(0,1fr); }
  .ms32.ms31 > .ms31-toolbar { align-items:stretch; }
  .ms32.ms31 .ms32-actions { flex:1 1 100%; justify-content:stretch; }
  .ms32.ms31 .ms32-actions button { flex:1 1 100%; }
}
