/* ===== MẠNH LIFE V39 FINAL POLISH ===== */
.ml-v39-management-hidden{display:none!important;}
.ml-task-panel>.ml-section-head p{font-size:12px;line-height:1.25;opacity:.62;margin-top:2px!important;}
.ml-main-work-tabs{display:flex;gap:6px;align-items:center;margin:10px 0 8px;padding:3px;border-radius:14px;background:rgba(15,23,42,.055);border:1px solid rgba(148,163,184,.20);width:max-content;max-width:100%;}
.ml-main-work-tabs button{border:0;background:transparent;border-radius:11px;padding:7px 12px;font-size:13px;font-weight:800;color:#64748b;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,box-shadow .15s ease;}
.ml-main-work-tabs button.active{background:#fff;color:#0f172a;box-shadow:0 5px 16px rgba(15,23,42,.10);}
.ml-main-work-pane{display:none;min-width:0;}
.ml-main-work-pane.active{display:block;}
.ml-main-work-journal .ml-block{margin:10px 0 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.ml-main-work-journal .ml-block-head{display:none!important;}
.ml-main-work-journal .ml-journal-grid{gap:10px!important;}
.ml-main-work-journal .ml-panel{box-shadow:none!important;border-color:rgba(148,163,184,.20)!important;}
.ml-history-priority-block .ml-block-head{display:none!important;}
.ml-task-row{gap:10px!important;}
.ml-top-task-form{border-radius:16px!important;padding:10px!important;gap:8px!important;}
.ml-top-task-form label span,.ml-audio-first-head span,.ml-audio-first-head strong,.ml-allocation-head strong{font-size:12px!important;}
.ml-audio-first-box{padding:8px!important;border-radius:14px!important;}
.ml-task-audio-row{gap:6px!important;}
.ml-task-audio-row .ml-btn,.ml-top-add-task{min-height:32px!important;padding:6px 10px!important;border-radius:10px!important;font-size:13px!important;}
.ml-top-task-form input,.ml-top-task-form textarea,.ml-top-task-form select{min-height:34px!important;border-radius:10px!important;font-size:13px!important;}
.ml-top-task-form textarea{min-height:42px!important;}
.ml-allocation-panel{padding:9px!important;border-radius:16px!important;margin-bottom:8px!important;}
.ml-allocation-head{gap:8px!important;margin-bottom:6px!important;}
.ml-allocation-hint{font-size:0!important;opacity:.65;white-space:nowrap;}
.ml-allocation-hint::after{content:"↔  🔒";font-size:13px;}
.ml-task-aspect-filter{margin:6px 0!important;}
.ml-aspect-filter-line{gap:5px!important;display:flex;flex-wrap:wrap;}
.ml-aspect-filter-btn{min-height:27px!important;padding:4px 8px!important;border-radius:999px!important;font-size:12px!important;}
.ml-tag-manager-inline{padding:7px!important;border-radius:12px!important;gap:5px!important;}
.ml-tag-manager-inline input,.ml-tag-manager-inline select{height:30px!important;font-size:12px!important;}
.ml-task-item{border-radius:16px!important;padding:9px 8px!important;margin-bottom:7px!important;gap:7px!important;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease!important;transform:none!important;min-height:0!important;}
.ml-task-item:hover{transform:none!important;box-shadow:0 6px 18px rgba(15,23,42,.08)!important;}
.ml-task-item .ml-task-content{min-width:0!important;}
.ml-task-title-row{gap:6px!important;align-items:center!important;min-height:24px!important;}
.ml-task-title-row h3,.ml-inline-edit-title{font-size:14px!important;line-height:1.25!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ml-child-task-badge{height:24px!important;padding:3px 7px!important;border-radius:999px!important;font-size:12px!important;flex-shrink:0!important;}
.ml-task-desc-text{font-size:12px!important;line-height:1.25!important;max-height:32px!important;overflow:hidden!important;margin:3px 0!important;}
.ml-task-meta{gap:5px!important;margin-top:5px!important;}
.ml-pill,.ml-task-meta select,.ml-task-meta button{height:25px!important;min-height:25px!important;border-radius:999px!important;padding:2px 7px!important;font-size:11.5px!important;max-width:142px!important;}
.ml-mini-progress{height:4px!important;margin:6px 0 4px!important;border-radius:99px!important;}
.ml-task-time-row{display:flex!important;gap:5px!important;align-items:center!important;flex-wrap:wrap!important;margin-top:4px!important;}
.ml-task-time-row>div{min-height:24px!important;padding:3px 7px!important;border-radius:10px!important;font-size:11.5px!important;gap:4px!important;}
.ml-task-time-row strong{font-size:11.5px!important;}
.ml-inline-min-wrap{height:24px!important;border-radius:10px!important;padding:2px 5px!important;}
.ml-inline-minutes{width:46px!important;height:20px!important;font-size:11.5px!important;padding:0 2px!important;}
.ml-task-actions{gap:4px!important;align-self:flex-start!important;}
.ml-task-actions .ml-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;border-radius:10px!important;padding:0!important;font-size:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.ml-drag-handle{width:24px!important;height:28px!important;border-radius:9px!important;cursor:grab!important;}
.ml-task-check{width:18px!important;height:18px!important;}
.ml-task-detail-zone{margin-top:7px!important;padding:7px!important;border-radius:13px!important;}
.ml-subtask-list{gap:5px!important;}
.ml-subtask-row{min-height:28px!important;padding:4px 6px!important;border-radius:10px!important;font-size:12.5px!important;}
.ml-inline-subtask-add{height:30px!important;border-radius:10px!important;font-size:12.5px!important;}
.ml-subtask-progress{font-size:12px!important;}
.ml-budget-segment{min-height:40px!important;border-radius:11px!important;}
.ml-budget-title{font-size:11.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ml-budget-meta{font-size:11px!important;}
.ml-budget-empty{font-size:12px!important;padding:8px!important;}
.ml-day-template-bar{display:flex;align-items:center;justify-content:flex-start;margin:8px 0 10px;}
.ml-day-template-quick{display:flex;align-items:center;gap:6px;padding:5px;border-radius:14px;background:rgba(15,23,42,.045);border:1px solid rgba(148,163,184,.20);}
.ml-day-template-quick span{font-size:12px;font-weight:800;color:#475569;white-space:nowrap;}
.ml-day-template-select{height:32px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#fff;font-size:13px;font-weight:800;color:#0f172a;padding:0 8px;max-width:180px;}
.ml-day-template-settings-btn{width:32px;height:32px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#fff;cursor:pointer;}
.ml-day-template-settings{display:none;margin:8px 0 12px;}
.ml-day-template-settings.open{display:block;}
.ml-template-panel-card{border:1px solid rgba(148,163,184,.24);border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.08);padding:10px;}
.ml-template-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.ml-template-panel-head b{font-size:14px;display:block;}
.ml-template-panel-head small{font-size:11px;color:#64748b;}
.ml-template-panel-head button,.ml-template-toolbar button,.ml-template-bottom button,.ml-template-session-row button{border:1px solid rgba(148,163,184,.30);background:#fff;border-radius:10px;min-height:30px;padding:4px 8px;cursor:pointer;}
.ml-template-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) repeat(4,auto);gap:6px;align-items:end;margin-bottom:8px;}
.ml-template-toolbar label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#64748b;font-weight:800;}
.ml-template-toolbar input,.ml-template-toolbar select{height:31px;border-radius:10px;border:1px solid rgba(148,163,184,.35);padding:0 8px;font-size:12px;min-width:0;}
.ml-template-session-list{display:flex;flex-direction:column;gap:5px;max-height:310px;overflow:auto;padding-right:2px;overscroll-behavior:contain;}
.ml-template-session-row{display:grid;grid-template-columns:24px 44px minmax(120px,1.2fr) 86px 86px minmax(140px,1fr) 34px;gap:5px;align-items:center;padding:6px;border-radius:13px;background:rgba(248,250,252,.9);border:1px solid rgba(226,232,240,.9);}
.ml-template-drag{color:#94a3b8;text-align:center;font-weight:900;}
.ml-template-session-row input{height:30px;border-radius:9px;border:1px solid rgba(148,163,184,.28);padding:0 7px;font-size:12px;min-width:0;background:#fff;}
.ml-template-session-icon{text-align:center;}
.ml-template-bottom{display:flex;gap:8px;align-items:center;margin-top:8px;}
.ml-template-bottom span{font-size:11px;color:#64748b;}
.ml-session-grid .ml-session-item h3{font-size:14px!important;line-height:1.2!important;}
.ml-session-grid .ml-session-item p{font-size:11.5px!important;line-height:1.25!important;margin:3px 0!important;}
.ml-session-small-time{font-size:11px!important;}
.ml-v34-focus-music{max-width:100%;}
.ml-v39-yt-music{position:relative;display:inline-flex;align-items:center;}
.ml-v39-yt-toggle{width:28px;height:28px;border-radius:9px;border:1px solid rgba(148,163,184,.32);background:#fff;cursor:pointer;}
.ml-v39-yt-panel{display:none;position:absolute;right:0;top:34px;z-index:60;width:260px;padding:8px;border-radius:14px;background:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 16px 40px rgba(15,23,42,.16);}
.ml-v39-yt-panel.open{display:block;}
.ml-v39-yt-line{display:flex;gap:4px;margin-bottom:5px;}
.ml-v39-yt-line input{flex:1;min-width:0;height:30px;border-radius:9px;border:1px solid rgba(148,163,184,.35);padding:0 7px;font-size:12px;}
.ml-v39-yt-line button{width:30px;height:30px;border-radius:9px;border:1px solid rgba(148,163,184,.35);background:#fff;cursor:pointer;}
.ml-v39-yt-list{width:100%;height:30px;border-radius:9px;border:1px solid rgba(148,163,184,.35);font-size:12px;margin-bottom:6px;}
.ml-v39-yt-frame-wrap{display:flex;justify-content:center;align-items:center;min-height:0;}
.ml-v39-yt-frame-wrap iframe{border:0;border-radius:12px;max-width:100%;}
.ml-v39-yt-panel small{display:block;margin-top:5px;font-size:10.5px;color:#64748b;}
@media(max-width:900px){
  .ml-template-toolbar{grid-template-columns:1fr 1fr;}
  .ml-template-session-row{grid-template-columns:24px 38px 1fr 78px 78px 32px;}
  .ml-template-session-desc{grid-column:3 / span 3;}
  .ml-main-work-tabs{width:100%;}
  .ml-main-work-tabs button{flex:1;}
}
