/* Shared full task form is mounted inside the selected card. */
.task-card-editing { border-color: #d96b3b; background: #fff; }
.task-card-editing > .detail-item-meta,
.task-card-editing > .detail-item-content,
.task-card-editing > .detail-item-extra,
.task-card-editing > .actions { display: none; }
.task-card-editing > .task-editor-panel { margin: 12px 0 0; border: 0; box-shadow: none; padding: 0; }
.task-card-editing .task-editor-head { display: none; }
body.drop-manager-open { overflow: hidden; }
#dropManagerModal { z-index: 100300; padding: 24px; }
body.drop-manager-open #centerPromptModal { z-index: 100400; }
#dropManagerModal .dm-box { width: min(1180px, 96vw); max-width: 1180px; height: min(900px, 94vh); max-height: 94vh; padding: 0; display: flex; flex-direction: column; background: #fff; color: #252d2a; border-radius: 10px; overflow: hidden; }
.dm-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 30px 10px; }
.dm-header h2 { margin: 0; font-size: 24px; }
.dm-header p { margin: 8px 0 0; color: #7a807c; font-size: 14px; }
.dm-tabs { display: flex; gap: 30px; margin: 0 30px; border-bottom: 1px solid #e7e9e6; }
.dm-tabs button { padding: 18px 4px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: #333c36; font: inherit; cursor: pointer; }
.dm-tabs button[aria-selected="true"] { color: #d35c2c; border-bottom-color: #d35c2c; font-weight: 700; }
.dm-toolbar { display: flex; gap: 16px; align-items: center; padding: 20px 30px 8px; }
.dm-toolbar .dm-activity { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; flex: 1.2; }
.dm-activity > span { white-space: nowrap; font-size: 14px; }
.dm-activity select { min-width: 0; width: 100%; }
.dm-toolbar > input { flex: 1; min-width: 100px; }
.dm-box input, .dm-box textarea, .dm-box select { border: 1px solid #dfe3df; background: #fff; border-radius: 6px; padding: 11px 12px; color: #27302b; font: inherit; box-sizing: border-box; }
.dm-box input:focus, .dm-box textarea:focus, .dm-box select:focus { outline: 2px solid #f4d4c6; border-color: #d96b3b; }
.dm-box button:disabled { opacity: .5; cursor: not-allowed; }
.dm-box .dm-outline { color: #ce5b2b; background: #fff; border: 1px solid #d96b3b; border-radius: 6px; white-space: nowrap; }
.dm-status { margin: 0 30px; min-height: 25px; padding: 3px 0; color: #69736b; font-size: 13px; }
.dm-status.error { color: #b33029; }
.dm-body { margin: 0 30px; border: 1px solid #e5e8e3; border-radius: 8px; display: grid; grid-template-columns: 46% 54%; min-height: 0; flex: 1; overflow: hidden; }
.dm-library { display: flex; flex-direction: column; min-height: 0; padding: 20px 16px; border-right: 1px solid #e5e8e3; }
.dm-section-head { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 14px; }
.dm-section-head > strong { font-size: 19px; }
.dm-section-head > span { color: #8b908b; font-size: 14px; }
.dm-section-head > button { margin-left: auto; }
.dm-list { overflow: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dm-row { display: flex; align-items: center; padding: 10px; gap: 8px; border: 1px solid #e4e6e2; border-radius: 8px; background: #fff; }
.dm-row.active { border-color: #d96b3b; background: #fff8f1; }
.dm-select { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.dm-thumb { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; background: #f2eee5; border-radius: 5px; color: #aa8b69; font-size: 12px; overflow: hidden; }
.dm-thumb img, .dm-preview img { width: 100%; height: 100%; object-fit: contain; }
.dm-row-text { min-width: 0; display: grid; gap: 8px; }
.dm-row-text strong { font-size: 16px; overflow-wrap: anywhere; }
.dm-row-text small { color: #7b817b; font-size: 13px; overflow-wrap: anywhere; }
.dm-star { border: 0; padding: 8px; background: transparent; font-size: 25px; color: #8a9089; cursor: pointer; }
.dm-star[aria-pressed="true"] { color: #d96b3b; }
.dm-editor { padding: 20px 24px; overflow: auto; min-height: 0; }
.dm-editor label { display: grid; gap: 9px; margin-bottom: 18px; font-size: 14px; }
.dm-editor label input, .dm-editor label textarea { width: 100%; }
.dm-editor textarea { resize: vertical; min-height: 92px; }
.dm-image-field > span { display: block; font-size: 14px; margin-bottom: 12px; }
.dm-image-controls { display: flex; align-items: center; gap: 20px; }
.dm-preview { width: 130px; height: 130px; flex: 0 0 130px; background: #f5f1e9; border: 1px solid #e5dfd2; border-radius: 6px; display: grid; place-items: center; color: #918775; font-size: 14px; overflow: hidden; }
.dm-hint { color: #868d85; font-size: 12px; margin: 12px 0 0; line-height: 1.6; }
.dm-usage { background: #f6f6f3; border-radius: 6px; padding: 14px; margin-top: 20px; font-size: 13px; color: #626a61; }
.dm-empty { padding: 40px 12px; text-align: center; color: #7f887f; font-size: 14px; line-height: 1.8; }
.dm-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 30px; margin-top: 16px; border-top: 1px solid #e5e8e3; }
.dm-footer > span { font-size: 12px; color: #848b82; }
.dm-footer > div { display: flex; gap: 12px; }
.dm-footer button { min-width: 100px; border-radius: 6px; }
.dm-box .primary-btn { background: #d96b3b; color: #fff; }
@media (max-width: 800px) {
  #dropManagerModal { padding: 8px; }
  #dropManagerModal .dm-box { height: 96vh; max-height: 96vh; width: 100%; }
  .dm-header { padding: 18px 16px 10px; }
  .dm-tabs { margin: 0 16px; }
  .dm-toolbar { flex-wrap: wrap; padding: 14px 16px 6px; gap: 10px; }
  .dm-toolbar .dm-activity { flex-basis: 100%; }
  .dm-body { margin: 0 16px; display: flex; flex-direction: column; overflow: auto; }
  .dm-library { min-height: 220px; max-height: 300px; flex-shrink: 0; border-right: 0; border-bottom: 1px solid #e5e8e3; }
  .dm-editor { overflow: visible; flex-shrink: 0; padding: 16px; }
  .dm-status { margin: 0 16px; }
  .dm-footer { padding: 12px 16px; margin-top: 10px; flex-wrap: wrap; }
  .dm-footer > div { margin-left: auto; gap: 8px; }
  .dm-footer button { min-width: 70px; }
}
