/* V19.1 scoped styling to avoid legacy specificity conflicts */
#bsg-subtasks{background:linear-gradient(180deg,#fff 0%,#fcfbff 100%);border:1px solid #e8e5f4;border-radius:18px;padding:22px;margin:20px 0;box-shadow:0 8px 25px rgba(45,32,95,.035)}
#bsg-subtasks .bsg-subtasks-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
#bsg-subtasks .bsg-subtasks-heading h2{font-size:1.12rem;font-weight:750;margin:0;color:#28213e}
#bsg-subtasks-count{border-radius:100px;background:#f3efff;color:#6046af;padding:6px 12px;font-weight:650;font-size:.8rem}
#bsg-subtasks .bsg-subtasks-progress{margin:15px 0 17px;gap:13px}
#bsg-subtasks .bsg-subtasks-progress-track{height:9px;border-radius:20px;background:#efedf6}
#bsg-subtasks .bsg-subtasks-progress-track span{background:linear-gradient(90deg,#755ce3,#a085f8);border-radius:20px;transition:width .25s}
#bsg-subtasks .bsg-subtasks-progress strong{font-size:.84rem;color:#5540a6}
#bsg-subtasks .bsg-subtasks-list{display:grid;gap:9px;margin:0 0 15px}
#bsg-subtasks .bsg-subtask-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid #e9e6f2;border-radius:12px;min-height:52px;transition:background .15s,border-color .15s}
#bsg-subtasks .bsg-subtask-row:hover{background:#faf8ff;border-color:#cec4f3}
#bsg-subtasks .bsg-subtask-check{width:19px;height:19px;min-width:19px;accent-color:#755ce3;cursor:pointer}
#bsg-subtasks .bsg-subtask-title{flex:1;min-width:0;color:#302849;line-height:1.45;font-size:.92rem;font-weight:550;text-decoration:none;overflow-wrap:anywhere}
#bsg-subtasks .bsg-subtask-title:hover{color:#694dd3}
#bsg-subtasks .bsg-subtask-row.is-done .bsg-subtask-title{text-decoration:line-through;color:#938da3}
#bsg-subtasks .bsg-subtask-status{background:#f2eeff;color:#6546c9;font-size:.72rem;padding:5px 10px;border-radius:20px;white-space:nowrap}
#bsg-subtasks .bsg-subtask-row.is-done .bsg-subtask-status{background:#e8f8f0;color:#1b8061}
#bsg-subtasks .bsg-subtasks-empty{font-size:.87rem;color:#938ca5;padding:10px 3px}
#bsg-subtasks .quick-subtask{display:flex;gap:9px;align-items:stretch;margin-top:10px}
#bsg-subtasks .quick-subtask input[name="title"]{flex:1;min-width:0;min-height:46px;margin:0;background:#fff;border:1px solid #ddd7ef;border-radius:11px;padding:10px 14px;font-size:.9rem}
#bsg-subtasks .quick-subtask input[name="title"]:focus{outline:2px solid #cfc2ff;outline-offset:1px;border-color:#8467df}
#bsg-subtasks .quick-subtask button{margin:0;min-height:46px;border:0;border-radius:11px;background:#755ce3;color:#fff;padding:0 20px;font-weight:700;white-space:nowrap;cursor:pointer}
#bsg-subtasks .quick-subtask button:disabled{opacity:.65;cursor:wait}
#bsg-subtasks .bsg-subtasks-message:empty{display:none}
#bsg-subtasks .bsg-subtasks-message:not(:empty){margin:8px 0 12px;padding:10px 12px;border:1px solid #f5c8c8;border-radius:10px;background:#fff3f3;color:#9c2c2c;font-size:.83rem}
#bsg-subtasks .bsg-subtasks-message.is-success:not(:empty){background:#effaf4;color:#236c51;border-color:#ceefdf}
@media(max-width:600px){#bsg-subtasks{padding:15px 12px;border-radius:14px}#bsg-subtasks .bsg-subtask-row{padding:10px;gap:8px}#bsg-subtasks-count{font-size:.7rem;padding:5px 9px}#bsg-subtasks .bsg-subtask-status{font-size:.65rem;padding:4px 7px}#bsg-subtasks .quick-subtask button{padding:0 14px}}

/* V19.3 Drag & Drop only */
#bsg-subtasks .bsg-subtask-drag{flex:0 0 28px;width:28px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:#82739d;cursor:grab;font-size:23px;line-height:1;touch-action:none}
#bsg-subtasks .bsg-subtask-drag:active{cursor:grabbing}
#bsg-subtasks .bsg-subtask-drag:focus-visible{outline:2px solid #7456df;outline-offset:2px}
#bsg-subtasks .bsg-subtask-row.is-dragging{opacity:.5;border:1px dashed #765ee3;background:#f5f1ff}
#bsg-subtasks .bsg-subtasks-list.is-order-saving{pointer-events:none;opacity:.75}
