/* Слой прототипа поверх стилей админки: панель, плашки правок, окна, «глазами ученицы», адаптив.
   Адаптив считается от ширины рабочей области (container queries), а не окна: меню слева съедает 240px. */
:root { --p-warn: #9a5b12; --p-warn-bg: #fff3df; --p-info-bg: #eef6f0; color-scheme: light; }
html, body { background: var(--bg); }
body { overflow-x: clip; }
a { color: var(--accent-strong); }
.shell.v-d9bdab43 { grid-template-columns: 240px minmax(0, 1fr); }
.main.v-d9bdab43 { container-type: inline-size; container-name: main; overflow-wrap: anywhere; min-width: 0; }
@media (width <= 720px) {
  .shell.v-d9bdab43 { grid-template-columns: minmax(0, 1fr); }
  .sidebar.v-d9bdab43 { width: 100%; }
  .main.v-d9bdab43 { padding: 18px 16px 40px; }
}

/* ---------- кнопки прототипа ---------- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 16px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 13px/1.2 var(--font-body); white-space: nowrap; transition: border-color .15s, background .15s; }
.p-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.p-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-btn--accent:hover { background: var(--accent-strong); color: #fff; }
.p-btn--sm { min-height: 30px; padding: 5px 12px; font-size: 12px; }

/* ---------- панель прототипа ---------- */
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; background: #2b2226; color: #fff; font-size: 13px; }
.pbar__tag { font-weight: 600; letter-spacing: .02em; opacity: .85; }
.pbar__mode { display: inline-flex; background: #ffffff1f; border-radius: 999px; padding: 3px; }
.pbar__mode button { padding: 6px 12px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pbar__mode button.on { background: var(--accent); }
.pbar__me { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pbar__me select { max-width: 230px; min-width: 0; border-radius: 8px; border: 0; padding: 6px 8px; font: inherit; color: var(--text); background: #fff; }
.pbar__btn { background: #fff; color: #2b2226; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (width <= 720px) {
  .pbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 12px; }
  .pbar__tag { font-size: 12px; align-self: center; }
  .pbar__mode button { padding: 5px 10px; font-size: 12px; }
  .pbar__me { grid-column: 1; }
  .pbar__me select { max-width: none; width: 100%; }
  .pbar__btn { grid-column: 2; padding: 6px 12px; font-size: 12px; }
}

.nav-item--proto-off { opacity: .5; }

/* ---------- Домашки: полосы вкладок ---------- */
.course-tabs.v-f6a26d00 { scrollbar-width: none; }
.course-tabs.v-f6a26d00::-webkit-scrollbar { display: none; }
.layout.v-f6a26d00 { grid-template-columns: 320px minmax(0, 1fr); }
@media (width <= 1024px) { .layout.v-f6a26d00 { grid-template-columns: minmax(0, 1fr); } }
@container main (width < 640px) {
  .page__head.v-f6a26d00 { flex-direction: column; gap: 12px; }
  .page__head.v-f6a26d00 > .tabs { align-self: stretch; }
  .page__head.v-f6a26d00 > .tabs button { flex: 1; padding: 8px 6px; white-space: nowrap; }
}

/* ---------- Домашки: карточка работы ---------- */
.detail.v-f6a26d00 { container-type: inline-size; container-name: detail; min-width: 0; }
.detail__user.v-f6a26d00 { min-width: 0; }
.detail__user-meta.v-f6a26d00 { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
.detail__hw.v-f6a26d00 { min-width: 0; max-width: 55%; }
.detail__verdict.v-f6a26d00 { flex-wrap: wrap; row-gap: 10px; }
.detail__verdict.v-f6a26d00 .detail__revise + .detail__revise { margin-left: 0; }
.detail__buttons.v-f6a26d00 { flex-wrap: wrap; }
.detail__actions.v-f6a26d00 textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.detail__desc.v-f6a26d00 img, .detail__desc.v-f6a26d00 iframe { max-width: 100%; height: auto; }
@container detail (width < 600px) {
  .detail__head.v-f6a26d00 { flex-direction: column; align-items: stretch; gap: 12px; }
  .detail__hw.v-f6a26d00 { text-align: left; max-width: none; padding-top: 12px; border-top: 1px solid var(--hairline); }
  .detail__hw-title.v-f6a26d00 { font-size: 16px; }
  .detail__buttons.v-f6a26d00 > button { flex: 1; justify-content: center; }
  .detail__verdict.v-f6a26d00 .detail__revise { margin-left: 0; }
}
@container detail (width < 380px) {
  .detail__buttons.v-f6a26d00 > button { flex-basis: 100%; }
}

/* плашки и заметки */
.p-badge { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.p-badge--warn { background: var(--p-warn-bg); color: var(--p-warn); }
.p-badge--block { display: block; margin: 0 0 10px; padding: 9px 12px; }
.p-note { padding: 12px 14px; border-radius: 14px; background: var(--p-info-bg); font-size: 13px; line-height: 1.5; }
.p-note--warn { background: var(--p-warn-bg); }
.p-note__act { margin-top: 10px; }
.p-note-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; margin: 0; }
.p-history { padding: 10px 14px; border-radius: 14px; background: var(--surface-soft); font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.p-history b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.p-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p-quick__label { font-size: 12px; color: var(--text-muted); margin-right: 2px; }
.p-video { padding: 12px 14px; border-radius: 12px; background: #1f1a1c; color: #fff; font-size: 13px; }
.p-video small { display: block; opacity: .7; margin-top: 2px; }
.p-brief { padding: 12px 14px; border-radius: 14px; background: var(--surface-soft); font-size: 13px; }
.p-brief summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); }
.p-brief .detail__desc { margin-top: 10px; line-height: 1.55; }
.p-hint { margin: -2px 0 12px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.p-link { color: var(--text); font-weight: 600; text-decoration: none; }
.p-link:hover { color: var(--accent-strong); }
.p-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.p-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* мобильная проверка в режиме «как предлагаем»: список → работа */
.p-back { display: none; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--accent-strong); padding: 2px 0; }
@media (width <= 1024px) {
  .layout--new .detail { display: none; }
  .layout--new.layout--mdetail .list { display: none; }
  .layout--new.layout--mdetail .detail { display: flex; }
  .layout--new .p-back { display: inline-block; }
}

/* ---------- карточка ученицы ---------- */
.hdr.v-4b10a2e5 { grid-template-columns: 80px minmax(0, 1fr) auto; }
.hdr__meta.v-4b10a2e5 { flex-wrap: wrap; }
@container main (width < 640px) {
  .hdr.v-4b10a2e5 { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .hdr__avatar.v-4b10a2e5 { width: 56px; height: 56px; font-size: 24px; }
  .hdr__side.v-4b10a2e5 { grid-column: 1 / -1; flex-direction: row; align-items: stretch; flex-wrap: wrap; gap: 8px; }
  .hdr__side.v-4b10a2e5 > * { flex: 1 1 140px; }
  .hdr__points.v-4b10a2e5 { flex-direction: row; justify-content: center; gap: 6px; padding: 10px 12px; }
  .hdr__points-num.v-4b10a2e5 { font-size: 24px; }
  .hdr__name.v-4b10a2e5 { font-size: 24px; }
  .block.v-4b10a2e5 { padding: 18px; }
  .kpis.v-4b10a2e5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi.v-4b10a2e5 { padding: 12px; }
  .meta.v-4b10a2e5 { grid-template-columns: 1fr; }
  .courses__row.v-4b10a2e5 { grid-template-columns: 1fr; }
  .enr__row.v-4b10a2e5 { flex-wrap: wrap; }
  .intake__row.v-4b10a2e5 { flex-direction: column; gap: 2px; }
}
.p-evt-click { cursor: pointer; transition: background .15s; grid-template-columns: 32px minmax(0, 1fr) auto !important; }
.p-evt-click:hover, .p-evt-click:focus-visible { background: var(--accent-soft) !important; outline: none; }
.p-evt-go { align-self: center; font-size: 12px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
@container main (width < 480px) { .p-evt-go { font-size: 0; } .p-evt-go::after { content: '›'; font-size: 22px; } }

/* ---------- Ученики ---------- */
.toolbar.v-39915f3a .tabs { flex-wrap: wrap; }
.p-tbl .tbl { width: 100%; }
.p-tbl td, .p-tbl th { white-space: nowrap; }
.p-tbl .p-td-name { white-space: normal; min-width: 150px; }
@container main (width < 860px) {
  .toolbar.v-39915f3a { gap: 10px; }
  .toolbar.v-39915f3a .toolbar__field { width: 100%; }
  .toolbar.v-39915f3a .toolbar__field select { flex: 1; min-width: 0; }
  .p-tbl { background: none; border: 0; overflow: visible; }
  .p-tbl thead { display: none; }
  .p-tbl table, .p-tbl tbody, .p-tbl tr, .p-tbl td { display: block; width: 100%; }
  .p-tbl tr { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card-soft); padding: 12px 14px; margin-bottom: 10px; box-sizing: border-box; }
  .p-tbl td { border: 0 !important; padding: 3px 0 !important; white-space: normal; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
  .p-tbl td[data-l]::before { content: attr(data-l); color: var(--text-muted); }
  .p-tbl .p-td-name { font-size: 15px; padding-bottom: 6px !important; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
}

/* ---------- Группы ---------- */
.gcard.v-2e9b4883 .gcard__row { flex-wrap: wrap; }
.p-gname { font-weight: 600; font-size: 15px; flex: 1; min-width: 140px; }
.p-rowact { border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; background: var(--surface); }
.p-rowact:hover { border-color: var(--accent); color: var(--accent-strong); }
.gcard .gcard__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-top: 6px; }
.gcard .mlist { list-style: none; margin: 12px 0 0; padding: 0; }
.gcard .mrow { padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.gcard .mrow .muted { font-size: 12px; }
@container main (width < 640px) {
  .toolbar.v-2e9b4883 .toolbar__field { width: 100%; }
  .toolbar.v-2e9b4883 select { flex: 1; min-width: 0; }
  .page__head.v-2e9b4883 .page__title { font-size: 26px; }
}

/* ---------- окна ---------- */
.p-modal { position: fixed; inset: 0; z-index: 100; background: #1f1a1c80; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; overscroll-behavior: contain; }
.p-modal__box { position: relative; width: 100%; max-width: 780px; background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: 0 20px 60px -20px #0006; box-sizing: border-box; }
.p-modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-soft); font-size: 15px; z-index: 2; }
.p-modal__body .detail { box-shadow: none; padding: 0; background: none; }
.p-modal__body .detail__head { padding-right: 44px; }
.p-modal h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; padding-right: 44px; }
.p-checks { max-width: 580px; }
.p-ck { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--hairline); cursor: pointer; font-size: 14px; }
.p-ck input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.p-ck small { display: block; color: var(--text-muted); margin-top: 3px; line-height: 1.4; font-size: 12px; }
.p-checks__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.p-who { max-width: 440px; }
.p-who__btn { display: block; width: 100%; text-align: left; padding: 13px 16px; margin-top: 8px; border-radius: 14px; background: var(--surface-soft); font-size: 15px; font-weight: 500; }
.p-who__btn:hover { background: var(--accent-soft); }
.p-who__btn--ghost { background: none; border: 1px dashed var(--hairline); color: var(--text-muted); }
@media (width <= 720px) {
  .p-modal { padding: 0; }
  .p-modal__box { border-radius: 0; min-height: 100%; padding: 60px 16px 28px; max-width: none; }
  .p-modal__x { position: fixed; top: 12px; right: 12px; box-shadow: 0 2px 10px -4px #0005; }
  .p-modal__body .detail__head { padding-right: 0; }
  .p-checks__foot .p-btn { flex: 1; }
}

/* ---------- глазами ученицы — телефон ---------- */
.m-wrap { align-items: center; }
.m-phone { width: 100%; max-width: 400px; height: min(820px, calc(100dvh - 32px)); background: var(--bg); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px -30px #000a; }
.m-top { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; gap: 6px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--hairline); text-align: center; font-size: 14px; }
.m-top button { color: #3a8ee6; font-size: 15px; text-align: left; }
.m-top b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-top small { display: block; color: var(--text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-body { flex: 1; overflow-y: auto; padding: 14px; font-size: 14px; overflow-wrap: anywhere; }
.m-card { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card-soft); }
.m-card--warn { background: var(--p-warn-bg); }
.m-card--ok { background: var(--p-info-bg); font-weight: 600; }
.m-prof { display: flex; align-items: center; gap: 12px; }
.m-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--surface-pink); display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; }
.m-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.m-kicker { color: var(--accent-strong); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.m-pad { margin: 18px 4px 8px; }
.m-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; margin: 2px 0 6px; }
.m-title2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.m-h { font-family: var(--font-display); font-size: 22px; margin: 4px 0 10px; }
.m-int { position: relative; padding-right: 100px; min-height: 120px; }
.m-int--click { cursor: pointer; outline: 2px dashed var(--accent); outline-offset: -2px; }
.m-ring { position: absolute; right: 16px; top: 24px; width: 70px; height: 70px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-pink) 0); display: grid; place-items: center; }
.m-ring span { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--accent-strong); font-size: 14px; }
.m-small { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.m-card > b + .m-row, .m-card > .m-row:first-child { border-top: 0; }
.m-mini { flex: none; min-width: 34px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; font-size: 12px; }
.m-btn { margin-top: 12px; width: 100%; padding: 13px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
.m-back { color: var(--accent-strong); font-weight: 600; margin-bottom: 10px; padding: 4px 0; }
.m-desc { font-size: 13px; line-height: 1.5; max-height: 260px; overflow-y: auto; }
.m-desc p { margin: 0 0 6px; }
.m-ta { width: 100%; box-sizing: border-box; border: 1px solid var(--hairline); border-radius: 14px; padding: 10px; font: inherit; background: var(--surface-soft); resize: vertical; }
.m-file { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.m-err { margin-top: 10px; color: var(--accent-strong); font-weight: 600; font-size: 13px; }
.m-pre { white-space: pre-wrap; margin-top: 6px; font-size: 13px; }
@media (width <= 720px) { .m-phone { max-width: none; height: 100dvh; border-radius: 0; } .m-wrap { padding: 0; } }

/* после решения: понятно, где исправить */
.p-done { padding: 14px 16px; border-radius: 16px; background: var(--p-info-bg); border: 1px solid #6cb38a55; }
.p-done--rejected { background: #fdecef; border-color: #df7e8a55; }
.p-done__title { font-weight: 700; font-size: 15px; }
.p-done__text { font-size: 13px; color: var(--text-muted); margin: 4px 0 10px; line-height: 1.45; }
.p-done__acts, .p-fix { display: flex; flex-wrap: wrap; gap: 8px; }
@container detail (width < 480px) { .p-done__acts .p-btn, .p-fix .p-btn { flex: 1 1 100%; } }

/* палец должен попадать */
.back-link.v-4b10a2e5 { min-height: 40px; display: inline-flex; align-items: center; }
.p-back { min-height: 40px; align-items: center; }
@media (width <= 1024px) { .layout--new .p-back { display: inline-flex; } }
.p-link, .members__name { display: inline-block; padding: 6px 0; }
.detail__file.v-f6a26d00 { min-height: 40px; }
@container main (width < 640px) {
  .page__head.v-f6a26d00 > .tabs button { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 12px; }
  .page__head.v-f6a26d00 > .tabs .tabs__count { margin-left: 4px; }
}
.m-top button { min-height: 36px; }
.p-stub-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
@media (width <= 720px) { .shell.v-d9bdab43 { grid-template-rows: auto 1fr; } }
@container main (width < 860px) { .tbl-wrap.p-tbl.v-50c99815 { background: none; border: 0; border-radius: 0; overflow: visible; } }
.m-row > span:last-child:not(:only-child) { white-space: nowrap; }
.m-row > b { flex: 1; }
@container main (width >= 560px) and (width < 860px) {
  .p-tbl tbody { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-tbl tr { margin-bottom: 0; }
}

/* замечания */
.pbar__btn--fb { background: var(--accent); color: #fff; }
@media (width <= 720px) { .pbar__btn--fb { grid-column: 1 / -1; } }
.p-fblink { align-self: flex-start; margin-top: 4px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 1px dashed currentColor; padding: 0; }
.p-fblink:hover { color: var(--accent-strong); }
.p-fb-ctx { padding: 10px 14px; border-radius: 12px; background: var(--surface-soft); font-size: 13px; line-height: 1.5; margin-bottom: 12px; color: var(--text-muted); }
.p-fb-ctx b { color: var(--text); }
.p-fb-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.p-fb-f b { font-size: 14px; color: var(--text); }
.p-fb-f select, .p-fb-f input, .p-fb-f textarea { font: 400 14px/1.45 var(--font-body); color: var(--text); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; background: var(--surface-soft); width: 100%; box-sizing: border-box; }
.p-fb-f textarea { resize: vertical; min-height: 120px; }
.p-fb-ok { padding: 16px; border-radius: 14px; background: var(--p-info-bg); font-weight: 600; margin-bottom: 12px; }
.p-fb-mine { margin-top: 14px; font-size: 13px; }
.p-fb-mine summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.p-fb-mine div { padding: 8px 0; border-top: 1px solid var(--hairline); white-space: pre-wrap; }
.p-fb-mine small { display: block; color: var(--text-muted); }
