.work-editor { width: min(800px,calc(100vw - 28px)); max-width: 800px; height: auto; max-height: calc(100svh - 36px); border: 0; padding: 0; margin: auto; background: #f5f5f5; color: #050505; box-shadow: 0 25px 100px #0004; }
.work-editor::backdrop, .work-lightbox::backdrop { background: #05050599; backdrop-filter: blur(6px); }
.work-editor-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid #d9d9d9; background: #f5f5f5; }
.work-editor-head h2 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.06em; font-weight: 600; }
.work-editor-close { border: 0; width: 34px; height: 34px; border-radius: 50%; background: #e8e8e8; color: #050505; font-size: 23px; padding: 0; flex: none; }
.work-editor-body { padding: 0 28px 28px; }
.work-editor-note { font-size: 12px; line-height: 1.8; color: #777; margin: 18px 0 25px; font-weight: 400; }
.work-editor details { border: 0; border-bottom: 1px solid #ddd; }
.work-editor summary { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; font-size: 16px; list-style: none; cursor: pointer; }
.work-editor summary::-webkit-details-marker { display: none; }
.work-editor summary::after { content: '+'; font-size: 22px; }
.work-editor details[open] summary::after { content: '−'; }
.work-editor-fields { padding-bottom: 22px; }
.work-editor label { display: block; margin: 14px 0 0; font-size: 12px; color: #505050; line-height: 1.5; }
.work-editor input:not([type='file']):not([type='range']), .work-editor textarea, .work-editor select {
  display: block; width: 100%; border: 1px solid #d5d5d5; border-radius: 0; background: #fff; color: #050505; padding: 10px 12px; margin-top: 7px; font-size: 14px; line-height: 1.6;
}
.work-editor textarea { resize: vertical; min-height: 80px; }
.work-editor input[type='file'] { width: 100%; display: block; font-size: 11px; margin-top: 9px; }
.work-editor input[type='range'] { display: block; width: 100%; margin: 12px 0; accent-color: #050505; }
.work-editor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.work-editor-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 20px; }
.work-editor-image { border: 1px solid #ddd; padding: 12px; min-width: 0; }
.work-editor-image img { display: block; width: 100%; height: 170px; object-fit: cover; }
.work-editor-image[data-original-image] img { aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
.work-editor-image .work-remove-image { padding: 0; background: none; border: 0; text-decoration: underline; margin-top: 12px; font-size: 11px; color: #777; }
.work-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.work-editor-actions button { border: 1px solid #050505; background: #050505; color: #fff; padding: 11px 15px; font-size: 12px; }
.work-editor-actions button.secondary { color: #050505; background: none; border-color: #bbb; }
.work-editor-feedback { font-size: 12px; line-height: 1.7; color: #777; margin: 16px 0 0; min-height: 21px; }
.work-editor-font { border: 1px solid #ddd; padding: 15px; margin: 20px 0; }
.work-editor-font p { font-size: 12px; line-height: 1.8; color: #666; margin: 0 0 10px; }
.work-editor-pdf-status { font-size: 12px; color: #777; line-height: 1.7; overflow-wrap: anywhere; }
.work-editor-pdf-remove { padding: 0; border: 0; background: none; color: #777; text-decoration: underline; font-size: 12px; cursor: pointer; }
.work-lightbox { width: calc(100vw - 28px); max-width: none; height: calc(100svh - 28px); max-height: none; padding: 0; border: 0; margin: auto; background: #0a0a0a; color: white; overflow: hidden; }
.work-lightbox figure { display: flex; height: 100%; margin: 0; padding: 52px 55px 48px; align-items: center; justify-content: center; }
.work-lightbox img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.work-lightbox button { position: absolute; z-index: 2; color: #050505; background: #ffffffdd; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 21px; padding: 0; }
.work-lightbox-close { right: 15px; top: 15px; }
.work-lightbox-prev { left: 12px; top: calc(50% - 17px); }
.work-lightbox-next { right: 12px; top: calc(50% - 17px); }
.work-lightbox-caption { position: absolute; bottom: 17px; left: 20px; right: 20px; text-align: center; font-size: 12px; }
@media (max-width: 600px) {
  .work-editor-head { padding: 18px 20px; }
  .work-editor-body { padding: 0 20px 22px; }
  .work-editor-columns { grid-template-columns: 1fr; }
  .work-editor-assets { grid-template-columns: 1fr; }
  .work-editor-image img { height: 200px; }
  .work-lightbox figure { padding: 50px 15px 48px; }
}
