.workshop-card {
  margin-top: 20px;
}
.work-document-list {
  margin-top: 18px;
}
.work-document-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.work-document-row h3 {
  margin: 8px 0;
  font-size: 16px;
}
.work-document-row small {
  color: var(--muted);
}
dialog.workshop-modal {
  width: calc(100vw - 40px);
  max-width: 1500px;
  height: calc(100dvh - 40px);
  max-height: none;
  padding: 0;
  overflow: auto;
  border-radius: 18px;
  background: #f3f5fa;
}
dialog.workshop-modal .work-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.work-header h2 {
  margin: 8px 0;
}
.work-header input {
  display: block;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-weight: 800;
  font-size: 22px;
  padding: 5px 0;
  width: min(470px, 70vw);
  color: var(--ink);
}
.work-header input:hover,
.work-header input:focus {
  border-color: var(--line);
  background: #f8f9fc;
}
.work-header [role="status"] {
  font-size: 12px;
  color: #68768d;
  margin-top: 4px;
}
.work-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-body {
  padding: 24px;
  min-height: 380px;
}
.workshop-modal .notice {
  margin: 16px 24px;
}
.workshop-modal #work-error {
  margin: 0 24px;
}
.work-bottom {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  border-top: 1px solid var(--line);
}
.work-bottom .subtext {
  margin-left: auto;
  max-width: 380px;
}
.work-import {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce1ee;
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.work-import input {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  opacity: 0;
}
.work-import:focus-within {
  outline: 2px solid var(--blue);
}
.work-paper-wrap {
  max-width: 850px;
  margin: auto;
}
.work-paper-wrap .ql-toolbar {
  position: sticky;
  top: 120px;
  background: white;
  border-color: #e0e5ef;
  border-radius: 10px 10px 0 0;
  z-index: 3;
}
.work-paper-wrap .ql-container {
  border-color: #e0e5ef;
  background: white;
  box-shadow: 0 10px 35px #243d6a08;
  min-height: 850px;
}
.work-paper-wrap .ql-editor {
  min-height: 850px;
  padding: 65px 72px;
  font:
    18px/1.6 Georgia,
    "Times New Roman",
    serif;
  color: #252d3e;
  overflow: visible;
}
.work-paper-wrap .ql-editor h1 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.work-paper-wrap .ql-editor h2 {
  font-size: 24px;
  margin-top: 22px;
  margin-bottom: 8px;
}
.work-paper-wrap .ql-editor h3 {
  font-size: 20px;
}
.work-paper-wrap .ql-editor img {
  display: block;
  max-width: 100%;
  max-height: 700px;
  object-fit: contain;
  margin: 12px auto;
}
.work-paper-wrap .ql-editor p {
  margin-bottom: 8px;
}
.work-history {
  padding: 24px;
  max-width: 1100px;
  margin: auto;
}
.work-history > .slide-preview {
  margin-bottom: 24px;
}
.work-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.work-compare pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  padding: 12px;
  font: 13px/1.6 inherit;
}
.slide-workspace {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  max-width: 1350px;
  margin: auto;
}
.slide-strip {
  max-height: calc(100dvh - 250px);
  overflow: auto;
  padding-right: 4px;
}
.slide-strip .card-head {
  margin-bottom: 12px;
}
.slide-thumb {
  display: block;
  width: 100%;
  min-height: 110px;
  text-align: left;
  background: white;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  color: var(--ink);
  overflow: hidden;
}
.slide-thumb.selected {
  border: 2px solid var(--blue);
  padding: 11px;
  background: #f4f6ff;
}
.slide-thumb small {
  color: var(--blue);
  font-size: 10px;
}
.slide-thumb b {
  display: block;
  font-size: 12px;
  margin: 6px 0;
}
.slide-thumb span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  max-height: 30px;
  overflow: hidden;
}
.slide-main {
  min-width: 0;
}
.slide-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 16px;
}
.slide-controls label {
  font-size: 11px;
  color: var(--muted);
}
.slide-controls select {
  display: block;
  margin-top: 4px;
  padding: 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  max-width: 180px;
}
.slide-controls button {
  font-size: 11px;
  padding: 9px;
}
.slide-preview {
  aspect-ratio: 16/9;
  position: relative;
  background: var(--slide-bg);
  color: var(--slide-ink);
  border-radius: 8px;
  border-left: 9px solid var(--slide-accent);
  padding: 4.5% 5%;
  box-shadow: 0 8px 24px #253e6920;
  overflow: hidden;
  container-type: inline-size;
}
.slide-preview h2 {
  color: inherit;
  font-size: clamp(18px, 3cqw, 40px);
  line-height: 1.15;
  margin: 0 0 4%;
  font-family: Arial, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 25%;
  overflow: hidden;
}
.slide-content {
  display: flex;
  gap: 5%;
  height: 70%;
  overflow: hidden;
}
.slide-content p {
  flex: 1;
  min-width: 0;
  font:
    clamp(12px, 2.3cqw, 27px) / 1.4 Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  overflow: hidden;
}
.slide-content figure {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.slide-content img {
  max-width: 100%;
  max-height: 90%;
  object-fit: contain;
}
.slide-content figcaption {
  font-size: clamp(10px, 1.2cqw, 16px);
  margin-top: 8px;
  max-height: 10%;
  overflow: hidden;
  text-align: center;
}
.slide-image-empty {
  border: 2px dashed #99a9c4;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #7e8eaa;
}
.slide-preview.layout-title {
  padding-top: 12%;
}
.slide-preview.layout-title h2 {
  font-size: clamp(23px, 4cqw, 48px);
  max-height: 40%;
  margin-bottom: 5%;
}
.slide-preview.layout-title .slide-content {
  height: 42%;
}
.slide-number {
  position: absolute;
  bottom: 3%;
  right: 4%;
  font-size: 12px;
  color: var(--slide-accent);
}
.slide-fields {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.slide-fields textarea {
  min-height: 120px;
}
.slide-fields #slide-notes {
  min-height: 70px;
}
.slide-fields .subtext {
  margin: 0 0 16px;
}
@media (max-width: 900px) {
  .slide-workspace {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
  }
  .work-body {
    padding: 12px;
  }
  .work-header {
    padding: 14px !important;
  }
  .work-paper-wrap .ql-editor {
    padding: 35px 30px;
  }
  .work-paper-wrap .ql-toolbar {
    position: static;
  }
  .work-document-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  dialog.workshop-modal {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .work-actions button {
    font-size: 11px;
    padding: 8px;
  }
  .slide-workspace {
    display: block;
  }
  .slide-strip {
    display: flex;
    overflow-x: auto;
    max-height: 140px;
    gap: 8px;
    margin-bottom: 12px;
  }
  .slide-strip > .card-head {
    flex-shrink: 0;
    width: 70px;
    display: block;
  }
  .slide-thumb {
    flex-shrink: 0;
    width: 130px;
    min-height: 100px;
  }
  .slide-strip .card-head b {
    font-size: 11px;
    display: block;
  }
  .slide-controls {
    gap: 6px;
  }
  .work-header input {
    font-size: 18px;
  }
  .work-paper-wrap .ql-editor {
    padding: 25px 20px;
    min-height: 600px;
    font-size: 16px;
  }
  .work-compare {
    grid-template-columns: 1fr;
  }
  .work-history {
    padding: 12px;
  }
  .slide-fields {
    padding: 16px;
  }
  .workshop-modal .notice {
    margin: 12px;
  }
  .work-bottom {
    padding: 12px;
  }
  .work-bottom .subtext {
    margin: 0;
  }
}

.work-import-preview {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  font:
    14px/1.6 Manrope,
    sans-serif;
}
.ql-snow .ql-picker.ql-header,
.ql-snow .ql-picker.ql-font,
.ql-snow .ql-picker.ql-size {
  width: 145px;
}

.workshop-card {
  padding: 22px;
}
.workshop-card > .card-head {
  padding: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}
.workshop-card .subtext {
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: #798397;
}
.workshop-card > .page-actions {
  justify-content: flex-start;
  margin-top: 16px;
}
.work-document-list > p {
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .workshop-card {
    padding: 18px;
  }
  .workshop-card > .card-head {
    padding: 0;
  }
  .workshop-card > .page-actions {
    justify-content: flex-start;
  }
}

/* Familiar document workspace and review tools. */
dialog.workshop-modal {
  max-width: 1680px;
  background: #eef1f6;
}
.work-header {
  box-shadow: 0 1px 0 #dfe4ee;
}
.work-header .work-actions {
  align-items: center;
}
.work-header [data-review-count] {
  display: inline-block;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 5px;
  background: #edf1fb;
  color: #4664bd;
}
.work-ribbon {
  position: sticky;
  top: var(--work-header-height, 124px);
  z-index: 8;
  background: #fff;
  border-bottom: 1px solid #d9dfea;
  box-shadow: 0 2px 5px #22345c05;
}
.ribbon-tabs {
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 3px;
  border-bottom: 1px solid #edf0f5;
  flex-wrap: wrap;
}
.ribbon-tabs > [role="tab"] {
  padding: 11px 17px;
  border: 0;
  background: transparent;
  color: #536078;
  border-bottom: 3px solid transparent;
  font-size: 13px;
}
.ribbon-tabs > [aria-selected="true"] {
  border-bottom-color: #4a62e8;
  color: #324fae;
  font-weight: 700;
}
.ribbon-tabs > [role="tab"]:hover {
  background: #f4f6fb;
}
.ribbon-quick {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.ribbon-quick .ribbon-button {
  flex-direction: row;
  font-size: 12px;
  min-width: auto;
  gap: 6px;
  padding: 4px 8px;
}
.ribbon-panel {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 9px 20px;
  min-height: 102px;
  overflow-x: auto;
}
.ribbon-panel[hidden] {
  display: none !important;
}
.ribbon-group {
  flex-shrink: 0;
  border-right: 1px solid #e6e9f0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.ribbon-group:first-child {
  padding-left: 0;
}
.ribbon-group > div {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 560px;
}
.ribbon-group > small {
  display: block;
  text-align: center;
  color: #7d8797;
  font-size: 10px;
  margin-top: 5px;
}
.ribbon-group label {
  font-size: 10px;
  color: #758196;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ribbon-group select {
  font-size: 12px;
  padding: 6px 7px;
  border: 1px solid #d9dfeb;
  border-radius: 5px;
  background: #fff;
  max-width: 185px;
  color: #28364e;
}
.ribbon-group input[type="color"] {
  height: 31px;
  width: 35px;
  padding: 2px;
  border: 1px solid #d9dfeb;
  border-radius: 5px;
  background: #fff;
}
.ribbon-group .ribbon-checkbox {
  flex-direction: row;
  align-items: center;
  margin: 8px 5px;
}
.ribbon-info {
  font-size: 12px;
  color: #748197;
  margin: 0 14px;
}
.ribbon-button {
  display: inline-flex;
  min-width: 49px;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #38475e;
}
.ribbon-button > span {
  font-size: 20px;
  line-height: 1.1;
}
.ribbon-button > small {
  font-size: 10px;
  line-height: 1.2;
  max-width: 92px;
}
.ribbon-button:hover {
  background: #eef2fc;
  border-color: #dce4f8;
}
.ribbon-button[aria-pressed="true"] {
  background: #e4ebff;
  color: #294fae;
  border-color: #b7c7f4;
}
.ribbon-help {
  max-width: 400px;
  font-size: 12px;
  line-height: 1.6;
  color: #6d7c92;
  padding: 0 18px;
  margin: 8px 0;
}
.work-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 400px;
}
.work-editor-layout.review-visible {
  grid-template-columns: minmax(0, 1fr) 310px;
}
.work-editor-main {
  min-width: 0;
  overflow: hidden;
}
.work-body {
  padding: 22px;
  min-height: 400px;
}
.work-bottom {
  position: sticky;
  bottom: 0;
  z-index: 7;
  padding: 10px 20px;
  box-shadow: 0 -1px 0 #dfe4ee;
}
.work-bottom button,
.work-bottom .work-import {
  font-size: 10px;
  padding: 7px 9px;
}
.work-bottom .subtext {
  font-size: 10px;
}
.work-document-status {
  font-size: 11px;
  color: #68758b;
  max-width: 430px;
  margin-right: auto;
  line-height: 1.5;
}
.work-document-scroll {
  overflow: auto;
  padding: 6px 8px 20px;
  min-width: 0;
}
.work-paged-host {
  max-width: none;
  margin: auto;
}
.work-paged-host .ql-container {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
}
.work-ruler {
  display: flex;
  justify-content: space-between;
  height: 28px;
  font:
    9px Arial,
    sans-serif;
  color: #8992a3;
  background: linear-gradient(90deg, #c7ceda 1px, transparent 1px) 0 14px/37.8px
    8px repeat-x;
  background-color: #f6f7fa;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  align-items: flex-start;
  padding-top: 2px !important;
}
.hide-work-ruler .work-ruler {
  visibility: hidden;
}
.work-page-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.work-page-sheet {
  position: absolute;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 1px 8px #2e40522a;
  border: 1px solid #dce1e8;
}
.work-page-sheet > span {
  position: absolute;
  bottom: 22px;
  right: 40px;
  font:
    12px "Times New Roman",
    serif;
  color: #68778c;
}
.work-paper-wrap .ql-editor.work-paged-text {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
  font-size: 14pt;
  line-height: 1.5;
  color: #202938;
  overflow: visible;
  background: transparent;
  min-height: 1123px;
}
.work-paged-text > *,
.work-paged-text li {
  margin-top: var(--work-page-gap, 0px) !important;
}
.work-paged-text p {
  margin-bottom: 8px;
}
.work-paged-text h1 {
  font-size: 18pt;
  line-height: 1.25;
  margin-bottom: 16px;
  padding-top: 8px;
}
.work-paged-text h2 {
  font-size: 16pt;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-top: 14px;
}
.work-paged-text h3 {
  font-size: 14pt;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-top: 10px;
}
.work-paged-text .ql-page-break {
  position: relative;
  pointer-events: none;
  min-height: 1px;
  padding: 0;
  margin-bottom: 0;
}
.ql-page-break::before {
  content: "Разрыв страницы";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px dashed #c6cfdf;
  text-align: center;
  font:
    9px Manrope,
    sans-serif;
  color: #95a0b3;
  padding-top: 3px;
}
.work-paged-text .ql-font-times {
  font-family: "Times New Roman", Times, serif;
}
.work-paged-text .ql-font-arial {
  font-family: Arial, sans-serif;
}
.work-paged-text .ql-font-calibri {
  font-family: Calibri, Arial, sans-serif;
}
.work-link-form {
  position: sticky;
  bottom: 10px;
  z-index: 6;
  max-width: 600px;
  margin: 12px auto;
  padding: 18px;
  background: white;
  border: 1px solid #c9d4ea;
  border-radius: 10px;
  box-shadow: 0 8px 30px #172e5524;
}
.work-link-form[hidden] {
  display: none;
}
.review-pane {
  display: block;
  width: auto;
  min-width: 0;
  background: #f8f9fc;
  border-left: 1px solid #dce2ed;
  padding: 14px;
  max-height: calc(100dvh - 280px);
  overflow: auto;
  position: sticky;
  top: calc(var(--work-header-height, 124px) + 144px);
  align-self: start;
}
.review-pane[hidden] {
  display: none !important;
}
.review-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.review-pane-head h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.review-pane-head p {
  font-size: 11px;
  color: #7b879b;
  margin: 0;
}
.review-icon {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: #8794a8;
}
.review-filter {
  font-size: 11px;
  color: #6b7990;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.review-filter select {
  min-width: 0;
  flex: 1;
  padding: 6px;
  border: 1px solid #dce2ec;
  background: white;
  border-radius: 5px;
  font-size: 11px;
}
.review-pane #review-create {
  width: 100%;
  margin-bottom: 14px;
}
.review-thread {
  border: 1px solid #dde3ee;
  background: #fff;
  border-radius: 10px;
  padding: 13px;
  margin: 0 0 12px;
  font-size: 12px;
  scroll-margin-top: 40px;
}
.review-thread.selected {
  border-color: #869fe5;
  box-shadow: 0 0 0 2px #dfe7fc;
}
.review-thread.resolved {
  background: #f9fcfa;
}
.review-thread-head {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.review-thread-head > b {
  font-size: 12px;
}
.review-status {
  font-size: 9px;
  padding: 3px 5px;
  border-radius: 4px;
  white-space: nowrap;
  background: #fff1ce;
  color: #98701d;
}
.review-status.review {
  background: #e7edff;
  color: #506ec0;
}
.review-status.resolved {
  background: #dff2e9;
  color: #2d8869;
}
.review-thread > small {
  display: block;
  font-size: 9px;
  color: #9ba5b4;
  margin-top: 5px;
}
.review-quote {
  display: block;
  width: 100%;
  text-align: left;
  margin: 12px 0 9px;
  border: 0;
  border-left: 3px solid #e7be54;
  padding: 6px 8px;
  background: #fff9e9;
  color: #7a694a;
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-quote:disabled {
  background: #f1f2f5;
  border-color: #cad0dc;
  color: #939cab;
  cursor: default;
}
.review-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  color: #34455e;
  margin: 10px 0;
}
.review-post {
  border-top: 1px solid #edf0f5;
  padding: 10px 0 0;
  margin-top: 8px;
  font-size: 11px;
}
.review-post small {
  display: block;
  color: #a1aaba;
  font-size: 9px;
  margin-top: 3px;
}
.review-post p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 5px 0;
}
.review-system p {
  font-style: italic;
  color: #7d899d;
}
.review-thread .page-actions {
  justify-content: flex-start;
  margin: 10px 0;
}
.review-action {
  font-size: 10px;
  padding: 6px 9px;
  border: 1px solid #cbd8ef;
  border-radius: 6px;
  background: #f1f5ff;
  color: #4968ac;
}
.review-thread details summary {
  font-size: 11px;
  color: #7e8fa9;
  cursor: pointer;
  padding: 8px 0;
}
.review-pane textarea {
  min-height: 78px;
  font-size: 12px;
  padding: 9px;
}
.review-pane .field {
  font-size: 11px;
}
.review-pane button.primary,
.review-pane button.secondary {
  font-size: 10px;
  padding: 7px 10px;
}
.review-anchor-note,
.review-resolved-by,
.review-footnote {
  font-size: 10px;
  color: #9a895c;
  line-height: 1.5;
  margin: 8px 0;
}
.review-resolved-by {
  color: #3c967a;
}
.review-footnote {
  color: #a1aaba;
  padding: 6px;
}
.review-empty {
  padding: 30px 10px;
  text-align: center;
  font-size: 12px;
  color: #9aa5b7;
}
.review-target {
  font-size: 11px;
  white-space: pre-wrap;
  max-height: 100px;
  overflow: auto;
  border-left: 3px solid #ddb44e;
  padding: 9px;
  background: #fff7df;
  margin-bottom: 12px;
}
#review-new-form {
  background: white;
  border: 1px solid #d7dfed;
  padding: 12px;
  border-radius: 9px;
  margin-bottom: 12px;
}
.work-text-highlights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.review-text-mark {
  position: absolute;
  background: #ffe17b;
  opacity: 0.36;
  pointer-events: none;
}
.review-text-mark.selected {
  background: #ffc555;
  opacity: 0.48;
}
.review-text-marker {
  position: absolute;
  right: 22px;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border: 1px solid #e1bb4f;
  background: #ffefb2;
  color: #826326;
  border-radius: 5px;
  font:
    11px Arial,
    sans-serif;
  box-shadow: 0 1px 2px #34455c16;
}
.legacy-slide-controls {
  display: none !important;
}
.slide-workspace {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
}
.slide-strip {
  position: sticky;
  top: 0;
  max-height: calc(100dvh - 320px);
}
.slide-main {
  min-width: 0;
}
#slide-canvas {
  max-width: 100%;
  margin: auto;
}
.slide-preview {
  border-radius: 2px;
  min-height: 180px;
}
.slide-preview [data-canvas-field] {
  outline: 1px solid transparent;
  cursor: text;
  min-height: 1.3em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.slide-preview [data-canvas-field]:hover {
  outline: 1px dashed #9ab4d4;
}
.slide-preview [data-canvas-field]:focus,
.slide-preview .selected-textbox {
  outline: 2px solid #829dca;
  outline-offset: 5px;
}
.slide-preview [data-canvas-field]:empty::before {
  content: attr(data-placeholder);
  opacity: 0.5;
  pointer-events: none;
}
.slide-preview h2[data-canvas-field] {
  min-height: 1.2em;
}
.slide-properties {
  margin-top: 18px;
}
.slide-properties > summary {
  padding: 9px 12px;
  background: #f7f9fd;
  color: #8795aa;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
}
.slide-properties .slide-fields {
  margin-top: 8px;
}
.review-slide-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.review-slide-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 1px solid #c99d36;
  background: #ffeab1;
  color: #806123;
  border-radius: 6px;
  min-width: 25px;
  height: 25px;
  font-weight: 700;
  box-shadow: 0 2px 5px #293c5520;
}
.review-slide-pin.selected {
  background: #ffc953;
  border-color: #aa801d;
}
.work-slideshow {
  position: fixed;
  inset: 0;
  background: #142033;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 14px;
}
.slideshow-canvas {
  width: min(95vw, calc((100dvh - 110px) * 16 / 9));
  max-height: 85dvh;
}
.slideshow-canvas .slide-preview {
  width: 100%;
  border-radius: 0;
}
.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cad3e2;
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 1100px) {
  .ribbon-tabs {
    padding: 0 10px;
  }
  .ribbon-tabs > [role="tab"] {
    padding: 10px;
  }
  .ribbon-panel {
    padding: 8px 12px;
  }
  .ribbon-group {
    padding: 0 10px;
  }
  .work-header input {
    width: min(330px, 75vw);
  }
  .work-actions button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .work-editor-layout.review-visible {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .ribbon-group > div {
    max-width: 370px;
  }
  .ribbon-help {
    display: none;
  }
}
@media (max-width: 900px) {
  .work-editor-layout.review-visible {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-pane {
    position: fixed;
    right: 8px;
    bottom: 8px;
    top: auto;
    width: 310px;
    max-width: calc(100vw - 20px);
    height: 60dvh;
    max-height: 60dvh;
    z-index: 30;
    box-shadow: 0 5px 40px #172c5140;
    border: 1px solid #cdd7e9;
    border-radius: 12px;
  }
  .work-body {
    padding: 12px;
  }
  .slide-workspace {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
  }
  .slide-strip {
    position: static;
  }
  .work-header {
    gap: 10px;
  }
  .ribbon-quick {
    display: none;
  }
  .ribbon-button {
    padding: 5px;
    min-width: 40px;
  }
  .ribbon-tabs > [role="tab"] {
    font-size: 11px;
  }
  .work-document-scroll {
    padding: 4px 0 12px;
  }
  .work-bottom .subtext {
    display: none;
  }
  .work-bottom {
    gap: 8px;
  }
  .ribbon-panel {
    min-height: 90px;
  }
  .ribbon-group label {
    font-size: 9px;
  }
}
@media (max-width: 600px) {
  .slide-workspace {
    display: block;
  }
  .slide-strip {
    display: flex;
    max-height: 112px;
  }
  .slide-thumb {
    width: 110px;
    min-height: 95px;
  }
  .ribbon-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .ribbon-tabs > [role="tab"] {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px;
  }
  .ribbon-group > div {
    max-width: 330px;
  }
  .ribbon-group select {
    font-size: 10px;
    max-width: 130px;
  }
  .work-header {
    padding: 10px !important;
  }
  .work-header input {
    font-size: 17px;
  }
  .work-header .work-actions {
    gap: 5px;
  }
  .work-header .work-actions button {
    font-size: 9px;
    padding: 7px;
  }
  .work-body {
    padding: 8px;
  }
  #slide-canvas {
    max-width: 100%;
  }
  .work-bottom {
    padding: 9px;
  }
  .work-document-status {
    font-size: 10px;
    width: 100%;
  }
}

/* Keep the editing surface visible even in a short browser window. */
dialog.workshop-modal:has(#work-layout) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workshop-modal:has(#work-layout) > .work-header,
.workshop-modal:has(#work-layout) > .work-ribbon,
.workshop-modal:has(#work-layout) > .work-bottom {
  flex-shrink: 0;
  position: relative;
  top: auto;
  bottom: auto;
}
.workshop-modal:has(#work-layout) > #work-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.workshop-modal:has(#work-layout) .work-editor-main {
  overflow: auto;
  min-height: 0;
}
.workshop-modal:has(#work-layout) .work-body {
  min-height: 0;
}
.workshop-modal:has(#work-layout) .review-pane {
  max-height: none;
  min-height: 0;
  height: 100%;
  position: relative;
  top: 0;
  align-self: stretch;
}
.work-draft-menu {
  position: relative;
  font-size: 10px;
  color: #7f8da2;
}
.work-draft-menu > summary {
  padding: 7px 9px;
  cursor: pointer;
}
.work-draft-menu > div {
  position: absolute;
  right: 0;
  bottom: 35px;
  z-index: 20;
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 9px;
  padding: 14px;
  min-width: 240px;
  box-shadow: 0 4px 20px #2439572a;
}
.work-draft-menu > div > * {
  margin: 4px;
}
#ribbon-home-panel > .ribbon-group:nth-child(2) > div {
  max-width: 250px;
}
#ribbon-home-panel > .ribbon-group:nth-child(2) .ribbon-button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px;
}
#ribbon-home-panel > .ribbon-group:nth-child(2) .ribbon-button small {
  display: none;
}
#ribbon-home-panel > .ribbon-group:nth-child(2) select {
  max-width: 140px;
}
#ribbon-home-panel > .ribbon-group:nth-child(3) .ribbon-button {
  min-height: 32px;
  min-width: 32px;
  padding: 4px;
}
#ribbon-home-panel > .ribbon-group:nth-child(3) .ribbon-button small {
  max-width: 68px;
  font-size: 9px;
}
@media (max-width: 1100px) {
  .work-header input {
    width: 275px;
  }
  .work-header .work-actions {
    gap: 5px;
  }
  .work-header .work-actions button {
    padding: 7px 8px;
    font-size: 9px;
  }
  .work-bottom {
    padding: 7px 14px;
  }
  .work-document-status {
    max-width: none;
  }
  .ribbon-panel {
    min-height: 94px;
  }
}
@media (max-width: 900px) {
  .workshop-modal:has(#work-layout) .review-pane:not([hidden]) {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: 8px;
    width: 300px;
    height: 65%;
    max-height: 65%;
    z-index: 30;
  }
  .workshop-modal:has(#work-layout) #work-layout {
    position: relative;
  }
  .ribbon-group {
    padding: 0 8px;
  }
  #ribbon-home-panel > .ribbon-group:nth-child(2) > div {
    max-width: 230px;
  }
}
/* Compact controls keep a useful editing area on laptop screens. */
.workshop-modal:has(#work-layout) > .work-header {
  padding: 10px 20px !important;
}
.workshop-modal:has(#work-layout) .work-header .eyebrow {
  font-size: 9px;
  margin-bottom: 3px;
}
.workshop-modal:has(#work-layout) .work-header input {
  font-size: 18px;
  line-height: 22px;
  padding: 2px 4px;
}
.workshop-modal:has(#work-layout) #work-status {
  font-size: 10px;
  line-height: 14px;
  margin-top: 2px;
}
.ribbon-tabs > [role="tab"] {
  padding: 8px 12px;
  font-size: 12px;
}
.ribbon-panel {
  padding: 6px 16px;
  min-height: 88px;
}
.ribbon-group select {
  font-size: 11px;
  padding: 4px 6px;
}
#ribbon-home-panel > .ribbon-group:nth-child(3) .ribbon-button small {
  display: none;
}
#ribbon-home-panel > .ribbon-group:nth-child(3) > div {
  max-width: 280px;
}
#ribbon-home-panel > .ribbon-group:nth-child(3) label {
  width: 100%;
}
#ribbon-left > span,
#ribbon-center > span,
#ribbon-right > span {
  font-size: 0;
  width: 18px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) left top/18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 5px/12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 10px/18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 15px/12px 2px no-repeat;
}
#ribbon-center > span {
  background-position:
    center top,
    center 5px,
    center 10px,
    center 15px;
}
#ribbon-right > span {
  background-position:
    right top,
    right 5px,
    right 10px,
    right 15px;
}
@media (max-height: 650px) {
  .workshop-modal:has(#work-layout) .work-header {
    gap: 5px;
  }
  .workshop-modal:has(#work-layout) .work-header input {
    width: 230px;
  }
  .work-bottom > .subtext {
    display: none;
  }
}
#ribbon-home-panel > .ribbon-group:nth-child(2) .ribbon-color {
  font-size: 0;
  gap: 0;
}
@media (max-height: 650px) {
  .workshop-modal:has(#work-layout) .ribbon-tabs > [role="tab"] {
    padding: 6px 12px;
  }
  .workshop-modal:has(#work-layout) .ribbon-panel {
    min-height: 76px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .workshop-modal:has(#work-layout) .ribbon-group label {
    gap: 2px;
  }
  .workshop-modal:has(#work-layout) .ribbon-group > div {
    gap: 3px;
  }
}

.work-ribbon.ribbon-collapsed > .ribbon-panel {
  display: none !important;
}

.review-pane #review-error:empty {
  display: none;
}
/* Editable tables and freely placed slide objects. */
.work-paper-wrap .ql-editor table {
  min-width: 0;
  font-size: inherit;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: var(--work-page-gap, 0px) !important;
  margin-bottom: 14px;
}
.work-paper-wrap .ql-editor td {
  font-size: inherit;
  font-family: inherit;
  border: 1px solid #748299;
  padding: 7px 9px;
  min-width: 24px;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.4;
}
.work-paper-wrap .ql-editor tr:first-child td {
  background: #eef2f8;
  font-weight: 700;
}
.work-paper-wrap .ql-editor td:focus-within {
  background: #f3f6ff;
}
.work-table-tools,
.work-table-insert {
  background: white;
  border: 1px solid #d8e0ef;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}
.work-table-tools[hidden],
.work-table-insert[hidden] {
  display: none !important;
}
.work-table-tools button,
.work-table-insert button {
  font-size: 10px;
  padding: 6px 8px;
}
.work-table-tools small {
  width: 100%;
  color: #718099;
}
.work-table-insert label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.work-table-insert input {
  width: 60px;
  padding: 6px;
}
.slide-preview.free-canvas {
  aspect-ratio: 16/9;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  isolation: isolate;
}
.free-canvas::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.1%;
  background: var(--slide-accent);
  pointer-events: none;
}
.canvas-object {
  position: absolute;
  box-sizing: border-box;
  outline: 1px solid transparent;
  min-width: 0;
}
.canvas-object[tabindex]:hover {
  outline: 1px dashed #91a8cc;
}
.canvas-object.object-selected {
  outline: 2px solid #5179cc;
}
.canvas-text {
  width: 100%;
  height: 100%;
  white-space: pre-wrap;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.2;
  outline: none;
  padding: 2px;
  box-sizing: border-box;
}
.canvas-text[contenteditable]:empty::before {
  content: "Введите текст";
  opacity: 0.4;
}
.canvas-object img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}
.object-move {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 23px;
  border: 1px solid #5678bb;
  border-radius: 3px;
  background: #fff;
  color: #2b56a1;
  z-index: 5;
  cursor: move;
  touch-action: none;
  padding: 0;
  font-size: 18px;
  line-height: 20px;
}
.object-selected .object-move,
.canvas-object:hover .object-move {
  display: block;
}
.object-handle {
  display: none;
  position: absolute;
  width: 9px;
  height: 9px;
  background: white;
  border: 1px solid #406cc5;
  z-index: 6;
  touch-action: none;
}
.object-selected .object-handle {
  display: block;
}
.handle-nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.handle-n {
  left: 50%;
  top: 0;
  cursor: ns-resize;
}
.handle-ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}
.handle-e {
  right: 0;
  top: 50%;
  cursor: ew-resize;
}
.handle-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}
.handle-s {
  left: 50%;
  bottom: 0;
  cursor: ns-resize;
}
.handle-sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}
.handle-w {
  left: 0;
  top: 50%;
  cursor: ew-resize;
}
.object-dragging {
  user-select: none;
  cursor: move;
}
.object-inspector {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 12px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  font-size: 11px;
}
.object-inspector label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #68778c;
}
.object-inspector input[type="number"] {
  width: 76px;
}
.object-inspector input,
.object-inspector select {
  font-size: 11px;
  max-width: 250px;
  padding: 7px;
  border: 1px solid #d4ddeb;
  border-radius: 4px;
  background: white;
  color: #2f405c;
}
.object-inspector .object-aspect {
  flex-direction: row;
  align-items: center;
  padding: 8px 0;
}
.object-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
}
.object-actions button {
  font-size: 10px;
  padding: 6px 8px;
}
.canvas-help {
  font-size: 11px;
  line-height: 1.5;
  color: #738096;
  padding: 9px 3px;
}
.slide-properties .field:has(#slide-title),
.slide-properties .field:has(#slide-body),
.slide-properties .field:has(#slide-caption),
.slide-properties .page-actions {
  display: none;
}
@media (pointer: coarse) {
  .object-handle {
    width: 16px;
    height: 16px;
  }
  .object-move {
    width: 34px;
    height: 30px;
  }
}

.work-table-tools {
  position: sticky;
  top: 0;
  z-index: 6;
}
.canvas-overflow {
  color: #9b591b;
  background: #fff4dc;
  border-radius: 5px;
  padding: 8px;
}

.work-delivery-status {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.workspace-guide {
  padding: 22px;
  margin-bottom: 20px;
}
.workspace-guide ol {
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.8;
}
.workspace-guide li {
  margin-bottom: 10px;
}

.work-paper-wrap .ql-editor tr:last-child td {
  border-bottom: 1px solid #748299;
}

body:has(dialog.workshop-modal[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  .work-header .work-actions button {
    min-height: 36px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .ribbon-quick {
    display: flex;
    order: -1;
    margin-left: 0;
    gap: 0;
    flex-shrink: 0;
  }
  .ribbon-quick .ribbon-button {
    min-width: 36px;
    padding: 4px;
    font-size: 18px;
  }
  .ribbon-quick .ribbon-button small {
    display: none;
  }
  .object-inspector input,
  .object-inspector select {
    min-height: 36px;
    font-size: 12px;
  }
}
@media (pointer: coarse) {
  .object-handle {
    width: 22px;
    height: 22px;
  }
}

dialog.workshop-modal:not([open]) {
  display: none !important;
}
.work-presence{display:flex;align-items:center;gap:7px;color:#386657;font-size:12px;line-height:1.35;margin-top:5px;max-width:650px}.presence-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#249969}.work-presence.is-offline{color:#985c14}.work-presence.is-offline .presence-dot{background:#d49a35}
.insights-view{padding:22px;line-height:1.6}.insight-stats{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.insight-stats>span{background:#f1f5fb;border:1px solid #e0e7f0;border-radius:10px;padding:8px 15px;color:#52627c}.insight-stats b{font-size:20px;color:#223454;margin-right:5px}.insight-check{display:flex;gap:12px;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin:10px 0;background:#fff}.insight-check>span{color:#248265;font-size:22px}.insight-check.warn>span{color:#b2751c}.insight-check p{color:#67758c;margin:6px 0 10px}.text-diff{font-family:Arial,sans-serif;font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e0e7f1;border-radius:12px;padding:22px}.text-diff ins,.diff-legend ins{background:#dcf4e7;color:#16583d;text-decoration:underline;text-decoration-style:dotted}.text-diff del,.diff-legend del{background:#ffe1e5;color:#923e4b}.changed-slide-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.insights-view .work-compare pre{white-space:pre-wrap;overflow-wrap:anywhere}.insights-view .work-compare{align-items:start}.insights-view .work-compare>div{min-width:0}

.insight-stats>span{text-transform:lowercase}@media(max-width:600px){.insights-view{padding:14px}.text-diff{padding:14px;font-size:14px}.insight-check{padding:12px}}
