.modal:has(.work-editor),.modal:has(.work-details){display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 48px)}
.modal:has(.work-editor) .modal-head,.modal:has(.work-details) .modal-head{flex-shrink:0;align-items:flex-start}
.modal:has(.work-editor) .modal-head h2,.modal:has(.work-details) .modal-head h2{overflow-wrap:anywhere;line-height:1.45}
.modal:has(.work-editor) .modal-body,.modal:has(.work-details) .modal-body{overflow-y:auto;overscroll-behavior:contain;min-height:0}
.modal:has(.work-editor) .modal-foot,.modal:has(.work-details) .modal-foot{flex-shrink:0;background:#fff;box-shadow:0 -5px 16px #18382a05;flex-wrap:wrap}
.work-editor{display:grid;gap:21px}.work-fieldset{padding:0;margin:0;border:0;min-width:0}.work-fieldset legend{font:700 13px/1.5 var(--head);color:#244b41;padding:0 0 12px;width:100%;border-bottom:1px solid #e6ece7;margin-bottom:15px}.work-fieldset .form-grid{gap:15px 18px}.work-editor .field{min-width:0}.work-editor .form-error{border-radius:8px;background:#fff1ef;padding:12px 14px}.work-editor .form-error[hidden]{display:none}
.work-preview{background:linear-gradient(115deg,#eaf4ef,#f4f8ee);border:1px solid #cfdfd5;padding:18px 20px;border-radius:11px;color:#284d42}.work-preview-top,.work-preview-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center}.work-preview-top{font-size:13px;font-weight:600}.work-preview-top strong{font:750 25px/1.2 var(--head);color:#245c49}.work-preview-track{position:relative;height:10px;background:#dce8df;border-radius:20px;margin:14px 0 10px;overflow:hidden}.work-preview-track span{position:absolute;inset:0 auto 0 0;border-radius:20px;transition:width .18s ease}.work-preview-done{background:#a3c8bc}.work-preview-accepted{background:#338168}.work-preview-bottom{font-size:12px;color:#49675b;flex-wrap:wrap}.work-baseline{font-size:12px;line-height:1.7;color:#566c61;padding:10px 13px;border-left:3px solid #a9bcb1;background:#f6f8f5;margin-top:-10px}
.work-details{display:grid;gap:20px}.work-detail-status{display:flex;align-items:center;justify-content:space-between;gap:12px}.work-detail-status>span:last-child{font:600 12px/1.4 var(--font);color:#61776c}.work-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:0}.work-detail-grid>div{min-width:0}.work-detail-grid dt,.work-detail-dependency>small{font-size:12px;color:#607469;margin-bottom:5px;display:block}.work-detail-grid dd{font-size:14px;line-height:1.6;font-weight:550;margin:0;color:#243e35;overflow-wrap:anywhere}.work-detail-dependency .btn{width:100%;justify-content:flex-start;text-align:left;white-space:normal;line-height:1.6}.work-detail-dependency .btn svg{flex-shrink:0}.work-detail-dependency .btn svg:last-child{margin-left:auto}.work-detail-note{color:#486257;font-size:13px;line-height:1.75;white-space:pre-wrap}
@media(max-width:730px){.modal:has(.work-editor),.modal:has(.work-details){max-height:calc(100dvh - 24px);width:100%}.work-fieldset .form-grid{grid-template-columns:minmax(0,1fr)}.work-fieldset .field.full{grid-column:auto}.work-preview{padding:16px}.work-detail-grid{grid-template-columns:minmax(0,1fr);gap:15px}.modal:has(.work-editor) .modal-foot .btn,.modal:has(.work-details) .modal-foot .btn{flex:1;white-space:normal;min-height:46px}.work-editor{gap:19px}.work-preview-bottom{line-height:1.5}}
@media(prefers-reduced-motion:reduce){.work-preview-track span{transition:none}}
