/* ===== V65 hard fix: popup always opens + drag sort + smaller done ===== */
.ml-v65-ready .ml-task-left .ml-task-check{display:none!important}
.ml-v65-ready .ml-drag-handle{cursor:grab!important;touch-action:none!important;user-select:none!important;width:30px!important;height:30px!important;border-radius:12px!important}
.ml-v65-ready .ml-drag-handle:active{cursor:grabbing!important}
.ml-v65-ready .ml-task-item{will-change:auto!important;transition:border-color .12s ease, background .12s ease, box-shadow .12s ease!important}
.ml-v65-ready .ml-task-item:hover{transform:none!important}
.ml-v65-ready .ml-inline-edit-title,.ml-v65-ready .ml-task-title-row,.ml-v65-ready .ml-task-content{cursor:pointer!important}
.ml-v65-ready .ml-v65-done-right{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-weight:950!important;line-height:1!important;background:#dcfce7!important;color:#15803d!important;border:1px solid rgba(34,197,94,.23)!important;box-shadow:0 6px 12px rgba(34,197,94,.10)!important;transform:none!important}
.ml-v65-ready .ml-task-actions .ml-btn{transform:none!important}.ml-v65-ready .ml-task-actions .ml-btn:hover{transform:none!important}
.ml-v65-drag-ready{outline:1px dashed rgba(249,115,22,.28)!important}.ml-v65-dragging{opacity:.84!important;box-shadow:0 18px 44px rgba(15,23,42,.14)!important}.ml-v65-drop-before{box-shadow:inset 0 3px 0 #f97316!important}.ml-v65-drop-after{box-shadow:inset 0 -3px 0 #f97316!important}
.ml-v65-modal.hidden{display:none!important}.ml-v65-modal{position:fixed!important;inset:0!important;z-index:2147483500!important;font-family:inherit!important}.ml-v65-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(12px)}
.ml-v65-panel{position:relative;margin:5vh auto 0;width:min(1180px,calc(100vw - 56px));max-height:90vh;overflow:hidden;background:linear-gradient(180deg,#fffdf8,#fff);border:1px solid rgba(226,232,240,.95);border-radius:28px;box-shadow:0 36px 100px rgba(15,23,42,.32)}
.ml-v65-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px 18px;border-bottom:1px solid rgba(226,232,240,.78);background:linear-gradient(135deg,rgba(255,247,237,.92),rgba(255,255,255,.96))}.ml-v65-title-wrap span{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8;font-weight:900;margin-bottom:6px}.ml-v65-title{width:min(640px,60vw);border:0;background:transparent;color:#0f172a;font-size:32px;font-weight:950;outline:none;padding:2px 0}.ml-v65-head-actions{display:flex;gap:10px}.ml-v65-round{width:44px;height:44px;border-radius:999px;border:0;display:inline-flex;align-items:center;justify-content:center;font-weight:950;font-size:17px;cursor:pointer}.ml-v65-round.run{background:#22c55e;color:#fff;box-shadow:0 14px 30px rgba(34,197,94,.24)}.ml-v65-round.done{background:#e0f2fe;color:#0369a1}.ml-v65-round.close{background:#e2e8f0;color:#475569}.ml-v65-body{display:grid;grid-template-columns:320px 1fr;gap:22px;padding:24px;max-height:calc(90vh - 116px);overflow:auto}.ml-v65-side{display:flex;flex-direction:column;gap:14px}.ml-v65-timebox{background:#0f172a;color:#fff;border-radius:24px;padding:22px;box-shadow:0 20px 42px rgba(15,23,42,.18)}.ml-v65-timebox strong{display:block;font-size:34px;letter-spacing:.04em}.ml-v65-timebox span{display:block;margin-top:8px;color:#cbd5e1;font-weight:800}.ml-v65-timebox i{display:block;height:8px;background:rgba(255,255,255,.2);border-radius:999px;margin-top:18px;overflow:hidden}.ml-v65-timebox b{display:block;height:100%;background:#fb923c;border-radius:999px;width:0}.ml-v65-side label{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.ml-v65-select,.ml-v65-side input{margin-top:7px;width:100%;height:44px;border:1px solid #dbe4ef;border-radius:14px;background:#fff;padding:0 14px;color:#0f172a;font-weight:850;outline:none}.ml-v65-main{display:flex;flex-direction:column;gap:18px;min-width:0}.ml-v65-section{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 16px 36px rgba(15,23,42,.05)}.ml-v65-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.ml-v65-section-head strong{font-size:18px;color:#0f172a}.ml-v65-section-head small{color:#94a3b8;font-weight:800}.ml-v65-empty{border:1px dashed #cbd5e1;border-radius:16px;padding:18px;text-align:center;color:#94a3b8;font-weight:850;background:#f8fafc}.ml-v65-addline{display:flex;gap:10px;margin-top:12px}.ml-v65-addline input,.ml-v65-compose textarea{flex:1;border:1px solid #dbe4ef;border-radius:16px;padding:13px 16px;font-weight:850;outline:none}.ml-v65-addline button,.ml-v65-compose-actions button{border:0;border-radius:999px;background:#f97316;color:#fff;font-weight:950;padding:0 20px;min-height:42px}.ml-v65-sub{display:grid;grid-template-columns:24px 1fr 54px;align-items:center;gap:10px;padding:9px 10px;border:1px solid #edf2f7;border-radius:14px;margin-bottom:8px}.ml-v65-sub input[data-v65-sub-title]{border:0;background:transparent;font-weight:850;outline:none;color:#0f172a}.ml-v65-sub.done{opacity:.62}.ml-v65-sub.done input[data-v65-sub-title]{text-decoration:line-through}.ml-v65-comments{display:flex;flex-direction:column;gap:10px}.ml-v65-comment{border:1px solid #e2e8f0;border-radius:18px;padding:14px;background:#f8fafc}.ml-v65-comment>div{display:flex;align-items:center;gap:10px}.ml-v65-comment strong{color:#0f172a}.ml-v65-comment span{margin-left:auto;color:#94a3b8;font-size:12px;font-weight:850}.ml-v65-comment button{width:30px;height:30px;border:0;border-radius:999px;background:#fff;color:#64748b}.ml-v65-comment p{margin:10px 0 0;color:#334155;font-weight:750;white-space:pre-wrap}.ml-v65-comment a{color:#2563eb;font-weight:950;word-break:break-word}.ml-v65-comment audio{width:100%;margin-top:10px}.ml-v65-compose{margin-top:12px}.ml-v65-compose textarea{width:100%;box-sizing:border-box;resize:vertical}.ml-v65-compose-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.ml-v65-compose-actions button:first-child{background:#0f172a}.ml-v65-compose-actions button:nth-child(2){background:#ef4444}.ml-v65-audio-preview{margin-top:10px;padding:10px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}.ml-v65-audio-preview audio{width:100%}.ml-v65-rate{display:flex;gap:7px;margin-top:8px}.ml-v65-rate button{border:0;border-radius:999px;background:#eef2f7;color:#64748b;padding:6px 10px;font-weight:950}.ml-v65-rate button.active{background:#ffedd5;color:#9a3412}.ml-v65-modal-open body{overflow:hidden!important}#mlV65Toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(16px);opacity:0;z-index:2147483600;background:#0f172a;color:#fff;border-radius:999px;padding:12px 18px;font-weight:950;box-shadow:0 18px 48px rgba(15,23,42,.24);transition:.18s ease}#mlV65Toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:860px){.ml-v65-panel{width:calc(100vw - 20px);margin-top:10px;border-radius:22px}.ml-v65-body{grid-template-columns:1fr}.ml-v65-title{width:100%;font-size:26px}.ml-v65-header{padding:18px}.ml-v65-body{padding:16px}}


/* ===== V65 Pro task popup: cleaner, subtask audio, no audio-rate clutter ===== */
.ml-v65-modal{isolation:isolate!important}
.ml-v65-backdrop{background:rgba(15,23,42,.54)!important;backdrop-filter:blur(16px) saturate(1.05)!important}
.ml-v65-panel{width:min(1240px,calc(100vw - 64px))!important;border-radius:32px!important;background:linear-gradient(180deg,#fffefa 0%,#ffffff 58%,#f8fafc 100%)!important;box-shadow:0 44px 140px rgba(15,23,42,.34), inset 0 1px rgba(255,255,255,.9)!important}
.ml-v65-header{padding:24px 30px 20px!important;background:linear-gradient(135deg,rgba(255,247,237,.96),rgba(255,255,255,.98) 58%,rgba(240,249,255,.7))!important}
.ml-v65-title-wrap small{display:block;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#94a3b8;font-weight:950;margin-bottom:5px}.ml-v65-title-wrap span{display:none!important}
.ml-v65-title{font-size:33px!important;line-height:1.1!important;letter-spacing:-.02em!important}
.ml-v65-body{grid-template-columns:310px minmax(0,1fr)!important;gap:24px!important;padding:24px!important}
.ml-v65-side{position:sticky;top:0;align-self:start;background:rgba(255,255,255,.6);border:1px solid rgba(226,232,240,.7);border-radius:28px;padding:14px;box-shadow:0 12px 34px rgba(15,23,42,.04)}
.ml-v65-field{display:block;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.ml-v65-field>span{display:block;margin:0 0 7px}.ml-v65-field input,.ml-v65-select{height:42px!important;border-radius:14px!important;background:#fff!important;border:1px solid #e2e8f0!important;font-weight:900!important}
.ml-v65-timebox{border-radius:26px!important;background:linear-gradient(135deg,#0f172a,#111827 60%,#1e293b)!important;padding:22px!important}.ml-v65-timebox strong{font-size:36px!important}.ml-v65-timebox i{height:7px!important}.ml-v65-round{width:42px!important;height:42px!important;box-shadow:0 12px 26px rgba(15,23,42,.08)}.ml-v65-round.run{background:#22c55e!important}.ml-v65-round.done{background:#ecfeff!important;color:#0891b2!important}.ml-v65-round.close{background:#e8eef6!important}
.ml-v65-section{border-radius:26px!important;padding:18px!important;background:rgba(255,255,255,.88)!important;box-shadow:0 18px 44px rgba(15,23,42,.055)!important}.ml-v65-section-head strong{font-size:19px!important;letter-spacing:-.01em}.ml-v65-section-head small{font-size:12px!important}
.ml-v65-subtasks{display:flex;flex-direction:column;gap:8px}.ml-v65-sub-wrap{border:1px solid #edf2f7;border-radius:18px;background:#fff;overflow:hidden}.ml-v65-sub{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto auto!important;gap:9px!important;align-items:center!important;padding:9px 10px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}.ml-v65-sub input[type="checkbox"]{width:18px;height:18px}.ml-v65-sub input[data-v65-sub-title]{min-width:0!important;border:0!important;background:transparent!important;color:#0f172a!important;font-weight:880!important;outline:none!important}.ml-v65-sub.done input[data-v65-sub-title]{text-decoration:line-through;color:#94a3b8!important}.ml-v65-sub-audio-badge,.ml-v65-sub-record,.ml-v65-icon-btn{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border-radius:999px!important;border:1px solid #e2e8f0!important;background:#f8fafc!important;color:#64748b!important;font-size:12px!important;font-weight:950!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.ml-v65-sub-audio-badge{width:auto!important;padding:0 9px!important;color:#0f766e!important;background:#ecfeff!important}.ml-v65-sub-record{background:#fff7ed!important;color:#9a3412!important}.ml-v65-icon-btn.danger{background:#fee2e2!important;color:#b91c1c!important}.ml-v65-sub-audios{padding:0 10px 10px 42px;display:flex;flex-direction:column;gap:7px}.ml-v65-sub-audio-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:8px;align-items:center}.ml-v65-sub-audio-row audio{width:100%;height:34px}.ml-v65-sub-audio-row button{width:28px;height:28px;border:0;border-radius:999px;background:#fee2e2;color:#b91c1c;font-weight:950}.ml-v65-addline{align-items:center}.ml-v65-addline input{height:42px!important;padding:0 14px!important}.ml-v65-addline button#mlV65AddSub{width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}
.ml-v65-comments{max-height:230px;overflow:auto;padding-right:3px}.ml-v65-comment{border-radius:18px!important;padding:11px 12px!important;background:linear-gradient(180deg,#ffffff,#f8fafc)!important}.ml-v65-comment-top{display:flex!important;align-items:center!important;gap:8px!important}.ml-v65-comment-top span{margin-left:auto!important}.ml-v65-comment p{margin:7px 0 0!important}.ml-v65-comment audio{height:34px!important;margin-top:8px!important}.ml-v65-rate{display:none!important}.ml-v65-audio-preview{padding:8px!important;margin-top:8px!important}.ml-v65-audio-preview audio{height:34px!important}.ml-v65-compose textarea{min-height:58px!important;max-height:130px!important}.ml-v65-compose-actions button{min-height:38px!important}.ml-v65-comment.has-audio{display:block!important}
.ml-v65-ready .ml-v65-done-right{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;font-size:12px!important}
#mlV65Toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(16px);opacity:0;z-index:2147483600;background:#0f172a;color:#fff;border-radius:999px;padding:12px 18px;font-weight:950;box-shadow:0 18px 48px rgba(15,23,42,.24);transition:.18s ease}#mlV65Toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:900px){.ml-v65-panel{width:calc(100vw - 18px)!important;margin-top:9px!important}.ml-v65-body{grid-template-columns:1fr!important}.ml-v65-side{position:static!important}.ml-v65-title{font-size:26px!important}.ml-v65-comments{max-height:190px}}

/* ===== V66 polish: Enter subtask, compact recorder, speed menu, subtask delete, pro fonts ===== */
.ml-v65-modal,
.ml-v65-modal *{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif!important;
}
.ml-v65-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98))!important;
  border:1px solid rgba(226,232,240,.92)!important;
  box-shadow:0 30px 90px rgba(15,23,42,.24)!important;
}
.ml-v65-title{font-weight:920!important;letter-spacing:-.035em!important}
.ml-v65-section-head{gap:12px!important;align-items:center!important}
.ml-v66-comment-tools{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
.ml-v66-comment-tools small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.ml-v66-speed-wrap{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.ml-v66-dot-btn{background:#f8fafc!important;color:#475569!important;border:1px solid #e2e8f0!important}
.ml-v66-rate-menu{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;display:flex!important;gap:6px!important;background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:0 14px 34px rgba(15,23,42,.14)!important;border-radius:999px!important;padding:7px!important;z-index:4!important;margin:0!important}
.ml-v66-rate-menu[hidden]{display:none!important}
.ml-v66-rate-menu button{height:30px!important;min-width:38px!important;border:0!important;border-radius:999px!important;background:#f1f5f9!important;color:#64748b!important;font-size:12px!important;font-weight:900!important;padding:0 10px!important}
.ml-v66-rate-menu button.active{background:#ffedd5!important;color:#9a3412!important}
.ml-v65-rate:not(.ml-v66-rate-menu){display:none!important}
.ml-v65-icon-btn.recording,.ml-v65-sub-record.recording{background:#ef4444!important;color:#fff!important;border-color:#ef4444!important;box-shadow:0 8px 20px rgba(239,68,68,.18)!important}
.ml-v65-compose-actions{align-items:center!important}.ml-v65-compose-actions .ml-v65-icon-btn{width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}
.ml-v65-addline .ml-v65-icon-btn{width:36px!important;min-width:36px!important;height:36px!important}
.ml-v65-sub{grid-template-columns:20px minmax(0,1fr) auto auto 28px!important}
.ml-v66-sub-delete{width:28px!important;height:28px!important;min-width:28px!important;border:0!important;border-radius:999px!important;background:#fee2e2!important;color:#b91c1c!important;font-size:15px!important;font-weight:950!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}
.ml-v65-sub input[data-v65-sub-title]{font-size:14px!important;letter-spacing:-.01em!important}.ml-v65-subtasks{max-height:260px!important;overflow:auto!important;scrollbar-width:thin!important}.ml-v65-comment{font-size:14px!important}.ml-v65-comment audio{height:32px!important}.ml-v65-audio-preview audio{height:32px!important}
/* Compact pinned task popup after starting a task */
.ml-task-floating-popup:not(.ml-popup-hidden){
  width:auto!important;max-width:min(540px, calc(100vw - 28px))!important;min-height:0!important;display:flex!important;align-items:center!important;gap:9px!important;right:22px!important;bottom:22px!important;padding:9px 11px!important;border-radius:999px!important;background:linear-gradient(135deg,#166534,#15803d)!important;color:#fff!important;border:1px solid rgba(255,255,255,.2)!important;box-shadow:0 18px 48px rgba(22,101,52,.28)!important;overflow:visible!important
}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-top,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-meta,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-budget-mini,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-progress,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-popup-time-editor,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-detail,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-chooser,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-quick-form{display:none!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-title{font-size:14px!important;line-height:1!important;font-weight:900!important;color:#fff!important;max-width:240px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-time{margin:0!important;font-size:14px!important;line-height:1!important;color:#fff!important;font-weight:900!important;letter-spacing:.01em!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;grid-template-columns:none!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions .detail,
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions .open{display:none!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions button{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important;font-weight:950!important;background:rgba(255,255,255,.16)!important;color:#fff!important;text-decoration:none!important}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions .done{background:#dcfce7!important;color:#166534!important}
.ml-task-popup-toggle{border-radius:999px!important;padding:10px 13px!important;background:#0f172a!important;color:#fff!important;font-weight:900!important;box-shadow:0 18px 46px rgba(15,23,42,.23)!important}
.ml-task-floating-popup:not(.ml-popup-hidden)+.ml-task-popup-toggle{right:22px!important;bottom:78px!important}
@media(max-width:720px){
  .ml-v65-body{max-height:calc(100vh - 96px)!important}.ml-v66-comment-tools small{display:none!important}.ml-v65-sub{grid-template-columns:18px minmax(0,1fr) auto auto 26px!important;gap:6px!important}.ml-task-floating-popup:not(.ml-popup-hidden){left:10px!important;right:10px!important;bottom:12px!important;max-width:none!important}.ml-task-popup-toggle{right:12px!important;bottom:72px!important}
}

/* ===== V67: Subtask drag/sort + Enter hardfix + pinned popup clickable ===== */
.ml-v65-sub{grid-template-columns:26px 20px minmax(0,1fr) auto auto 28px!important;}
.ml-v67-sub-drag{width:26px!important;height:26px!important;min-width:26px!important;border:0!important;border-radius:10px!important;background:#f1f5f9!important;color:#64748b!important;font-size:13px!important;font-weight:950!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:grab!important;touch-action:none!important;user-select:none!important;}
.ml-v67-sub-drag:active{cursor:grabbing!important;}
.ml-v67-sub-drag-ready{outline:1px dashed rgba(249,115,22,.35)!important;}
.ml-v67-sub-dragging{opacity:.82!important;box-shadow:0 14px 34px rgba(15,23,42,.12)!important;}
.ml-v67-sub-drop-before{box-shadow:inset 0 3px 0 #f97316!important;}
.ml-v67-sub-drop-after{box-shadow:inset 0 -3px 0 #f97316!important;}
#mlTaskFloatingPopup,
#mlTaskPopupToggle{pointer-events:auto!important;}
#mlTaskPopupToggle{z-index:2147483405!important;cursor:pointer!important;}
.ml-task-floating-popup:not(.ml-popup-hidden){z-index:2147483404!important;cursor:default!important;}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions button{cursor:pointer!important;pointer-events:auto!important;}
.ml-task-floating-popup:not(.ml-popup-hidden) .ml-floating-actions .done{width:30px!important;height:30px!important;min-width:30px!important;font-size:13px!important;}
@media(max-width:720px){.ml-v65-sub{grid-template-columns:24px 18px minmax(0,1fr) auto auto 26px!important;}}
