/* The editor keeps writing separate from optional properties and activity. */
.workitem-modal.editor-modal{width:min(1100px,calc(100vw - 32px))}
.compact-item-detail{width:min(1100px,calc(100% - 32px))}
.compact-item-detail .detail-columns{grid-template-columns:minmax(0,1fr) 300px}
.compact-item-detail .detail-header{padding:12px 24px;border-bottom:0}
.compact-item-detail .detail-edit-panel{padding:20px 24px;min-width:0}
.compact-item-detail .detail-edit-panel label{margin:0 0 8px}
.compact-item-detail .detail-edit-panel [data-category-title]{font-size:23px;font-weight:500;padding:8px 0;border:0;background:transparent}
.compact-item-detail .detail-edit-panel textarea{height:auto;min-height:0;max-height:none;line-height:1.5;background:transparent;resize:vertical;margin-top:12px}
.compact-item-detail .category-title-selection{display:none}
.editor-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.compact-item-detail .detail-sidebar{padding:16px;background:var(--subtle)}
.editor-property{margin:0 0 4px;border:0;min-width:0}
.editor-property-row{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:8px;border-radius:5px;min-height:36px;color:var(--ink);font-size:13px;font-weight:400}
.editor-property-row::-webkit-details-marker{display:none}
.compact-item-detail .editor-property-row{justify-content:flex-start;padding:8px}
.compact-item-detail .editor-property-row>span:nth-child(2){color:var(--ink);font-size:13px}
.editor-property-row>.type-badge{margin-left:auto;font-size:10px}
.editor-property-row:hover{background:var(--hover)}
.editor-property-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.editor-property-row>.bi{flex:0 0 18px;color:var(--muted);text-align:center}
.editor-property-row>[data-editor-property-value]{margin-left:auto;min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
[data-editor-property-value]{color:var(--muted)}
.editor-property-content{padding:8px}
.editor-property-dialog{width:min(380px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);overflow:auto}
.editor-property-dialog::backdrop{background:#0006}
.editor-property-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.editor-property-dialog h2{font-size:17px;margin:0}
.editor-property-dialog header button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:transparent;color:var(--ink)}
.editor-property-dialog label{display:block;font-size:13px;font-weight:500;margin:12px 0 6px}
.editor-property-dialog select,.editor-property-dialog input:not([type=hidden]){width:100%}
.editor-property-dialog .planning-calendar{width:100%}
.editor-property-dialog .editor-property-content{padding:0}
.editor-property-dialog .row-button{gap:6px}
.editor-property-dialog .history-list{margin-top:0}
.editor-save-actions{display:flex;justify-content:flex-end;margin-top:16px}
.editor-save-actions button{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:8px 10px}
.editor-destructive-action{display:flex;justify-content:flex-end;margin-top:12px}
.editor-destructive-action button{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:transparent;color:var(--error);padding:8px}
@media(max-width:700px){
    .compact-item-detail .detail-columns{grid-template-columns:1fr}
    .compact-item-detail .detail-edit-panel{padding:16px}
    .compact-item-detail .detail-sidebar{border-left:0;border-top:1px solid var(--line);padding:12px}
    .editor-property-row{min-height:44px}
    .editor-property-dialog header button{width:44px;height:44px}
    .editor-property-dialog select,.editor-property-dialog input:not([type=hidden]){min-height:44px;font-size:16px}
    .editor-save-actions button,.editor-destructive-action button{min-height:44px}
}
