/* Безопасный публичный вывод содержимого ProseKit. */
.pk-media-figure,.pk-file-card,.pk-asset{max-width:100%;box-sizing:border-box}
.pk-media-figure{margin:1.35rem 0}
.pk-media-figure img,.pk-media-figure video{display:block;width:100%;max-width:100%;height:auto;border-radius:12px;transform:rotate(var(--pk-asset-rotate,0deg)) scaleX(var(--pk-asset-flip-x,1)) scaleY(var(--pk-asset-flip-y,1));transform-origin:center}
.pk-media-figure audio{display:block;width:100%;max-width:100%}
.pk-media-figure figcaption{margin-top:.55rem;color:#68758a;font-size:.9rem;line-height:1.45;text-align:center}
.pk-asset.align-center{margin-left:auto;margin-right:auto}
.pk-asset.align-right{margin-left:auto;margin-right:0}
.pk-asset.align-left{margin-left:0;margin-right:auto}
.pk-file-card{margin:1rem 0;border:1px solid #dce6f1;border-radius:12px;background:#f7fbff;overflow:hidden}
.pk-file-card>a{display:grid;grid-template-columns:42px minmax(0,1fr);gap:2px 12px;align-items:center;padding:14px 16px;color:#15345c;text-decoration:none}
.pk-file-card>a:hover{background:#eef7ff}
.pk-file-card-icon{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#dff2ff;font-size:21px}
.pk-file-card strong{min-width:0;overflow-wrap:anywhere}
.pk-file-card em{color:#6e7f92;font-size:.9rem;font-style:normal;overflow-wrap:anywhere}
.prosekit-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.prosekit-content img,.prosekit-content video,.prosekit-content audio{max-width:100%}
@media(max-width:600px){.pk-media-figure{width:100%!important}.pk-file-card>a{padding:12px}}
.pk-formula-inline{display:inline;padding:1px 5px;border:1px solid #dbe5f1;border-radius:6px;background:#f8fafc;font-family:Georgia,"Times New Roman",serif}
.pk-formula-card,.ege-component-token{margin:1rem 0;padding:12px 14px;border:1px solid #d7e2f1;border-radius:12px;background:#f8fbff;overflow-wrap:anywhere}
.pk-formula-card>span,.ege-component-token>span{display:inline-block;margin-right:8px;color:#075bbb;font-weight:700}
.pk-formula-card code{display:block;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.pk-mathml{display:inline-block;max-width:100%;overflow-x:auto;vertical-align:middle}
.pk-mathml-block{display:block;margin:1rem 0;text-align:center}
.pk-template-block{box-sizing:border-box;max-width:100%}
.pk-template-hero,.pk-template-callout,.pk-template-faq,.pk-template-teacher{margin:1rem 0;padding:18px;border:1px solid #dce7f2;border-radius:14px;background:#f8fbff}
.pk-template-card-grid,.pk-template-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:1rem 0}
.pk-template-button{display:inline-block;padding:9px 15px;border-radius:9px;background:#0b9fe8;color:#fff;text-decoration:none}
.table-of-contents{margin:1rem 0;padding:16px 18px;border:1px solid #dce7f2;border-radius:12px;background:#f8fbff}
.table-of-contents ol{margin:.65rem 0 0;padding-left:1.35rem}
.pk-template-faq details,.pk-accordion-demo{margin:.65rem 0;padding:12px 14px;border:1px solid #dce7f2;border-radius:10px;background:#fff}
.pk-template-faq summary,.pk-accordion-demo summary{cursor:pointer;font-weight:700}
.pk-template-stat{padding:14px;border-radius:12px;background:#eaf6ff}
.pk-template-stat strong{display:block;font-size:1.75rem}
.pk-content-table,.pk-imported-table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1rem 0}
.pk-content-table th,.pk-content-table td,.pk-imported-table th,.pk-imported-table td{min-width:90px;padding:.65rem .75rem;border:1px solid #dce5ef;vertical-align:top}
.pk-content-table th,.pk-imported-table th{background:#f1f6fb;font-weight:700}
.pk-template-kicker{margin:0 0 .45rem;color:#0878bd;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.pk-template-description{color:#64748b;line-height:1.6}
.pk-template-avatar{display:grid;place-items:center;min-height:110px;border-radius:14px;background:linear-gradient(135deg,#ffe17a,#f97373);font-weight:800}
.pk-import-list-marker{display:inline-block;margin-right:.3rem;font-weight:800}
.prosekit-content pre,.prosekit-content code{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.prosekit-content blockquote{margin:1rem 0;padding:.85rem 1rem;border-left:4px solid #0b9fe8;background:#f5faff}

/* Media upload v2: предсказуемый публичный вывод загруженных изображений и видео. */
.prosekit-content .pk-media-figure,
.pk-media-figure.pk-asset {
  max-width: 100%;
  overflow: visible;
}
.prosekit-content .pk-media-figure img,
.prosekit-content .pk-media-figure video,
.pk-media-figure.pk-asset img,
.pk-media-figure.pk-asset video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.prosekit-content .pk-media-figure video,
.pk-media-figure.pk-asset video {
  background: #07162b;
}
