.ml-focus-app{
  --ml-dark:#0f172a;
  --ml-muted:#64748b;
  --ml-line:#e2e8f0;
  --ml-soft:#f8fafc;
  --ml-orange:#f97316;
  --ml-orange-dark:#ea580c;
  --ml-indigo:#4f46e5;
  --ml-green:#16a34a;
  --ml-red:#dc2626;
  --ml-shadow:0 22px 60px rgba(15,23,42,.10);
  max-width:1180px;
  margin:20px auto;
  padding:18px;
  border-radius:32px;
  background:
    radial-gradient(circle at 8% 0%,rgba(249,115,22,.14),transparent 30%),
    radial-gradient(circle at 90% 10%,rgba(79,70,229,.12),transparent 26%),
    linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(226,232,240,.9);
  box-shadow:var(--ml-shadow);
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ml-dark);
  box-sizing:border-box;
}
.ml-focus-app *{box-sizing:border-box}
button,input,textarea,select{font-family:inherit}
button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,opacity .18s ease}
button:hover{transform:none}
.ml-focus-app[data-life-goals-v1="true"] .ml-global-search-bar,
.ml-focus-app[data-life-goals-v1="true"] .ml-topbar,
.ml-focus-app[data-life-goals-v1="true"] .ml-hero-grid,
.ml-focus-app[data-life-goals-v1="true"] .ml-sessions-block,
.ml-focus-app[data-life-goals-v1="true"] .ml-history-priority-block,
.ml-focus-app[data-life-goals-v1="true"] .ml-journal-block,
.ml-focus-app[data-life-goals-v1="true"] .ml-life-block,
.ml-focus-app[data-life-goals-v1="true"] .ml-management-block{
  display:none!important;
}
.ml-focus-app[data-life-goals-v1="true"] ~ #mlTaskFloatingPopup,
body:has(.ml-focus-app[data-life-goals-v1="true"]) #mlTaskPopupToggle,
body:has(.ml-focus-app[data-life-goals-v1="true"]) #mlV55MiniTimer,
body.ml-life-goals-mode #mlTaskPopupToggle,
body.ml-life-goals-mode #mlV55MiniTimer{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.ml-focus-app[data-life-goals-v1="true"]{
  max-width:1320px;
}
.ml-life-blueprint-block{
  margin:14px 0 0;
  padding:18px;
  border-radius:28px;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.ml-life-blueprint-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
}
.ml-life-blueprint-head span{
  color:var(--ml-muted);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.ml-life-blueprint-head h2{
  margin:5px 0 0;
  color:var(--ml-dark);
  font-size:34px;
  line-height:1.05;
  font-weight:1000;
}
.ml-life-blueprint-head p{
  max-width:520px;
  margin:0;
  color:var(--ml-muted);
  font-size:13px;
  line-height:1.4;
  font-weight:850;
  text-align:right;
}
.ml-life-blueprint-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.ml-life-blueprint-toolbar{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:0;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.ml-blueprint-tool{
  width:100%;
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:15px;
  align-items:start;
  min-height:218px;
  padding:20px;
  border-radius:24px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:var(--ml-dark);
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  position:relative;
  overflow:hidden;
}
.ml-blueprint-tool:hover{
  background:#fff7ed;
  border-color:#fed7aa;
}
.ml-blueprint-tool.active{
  background:linear-gradient(135deg,#fff7ed,#ffffff 70%);
  border-color:#fb923c;
  box-shadow:0 16px 32px rgba(249,115,22,.16);
}
.ml-blueprint-icon{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  background:#fff7ed;
  font-size:34px;
  box-shadow:inset 0 0 0 1px rgba(249,115,22,.10);
  position:relative;
  z-index:1;
}
.ml-blueprint-tool.active .ml-blueprint-icon{
  background:#ffedd5;
}
.ml-blueprint-tool strong{
  display:block;
  min-width:0;
  color:#0f172a;
  font-size:25px;
  line-height:1.08;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  position:relative;
  z-index:1;
}
.ml-blueprint-tool-status{
  display:inline-flex!important;
  width:auto;
  max-width:100%;
  margin:0 0 8px!important;
  padding:5px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:1000!important;
  white-space:nowrap;
  position:relative;
  z-index:1;
}
.ml-blueprint-tool.active .ml-blueprint-tool-status{
  background:#fed7aa;
  color:#9a3412!important;
}
.ml-blueprint-tool small{
  display:block;
  margin-top:10px;
  color:#64748b;
  font-size:14px;
  line-height:1.45;
  font-weight:850;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ml-blueprint-tool em{
  display:block;
  margin-top:16px;
  color:#9a3412;
  font-size:12px;
  line-height:1.3;
  font-style:normal;
  font-weight:1000;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ml-life-blueprint-workspace{
  min-width:0;
  display:grid;
  gap:12px;
}
.ml-life-blueprint-detail{
  min-width:0;
  display:block;
}
.ml-crm-preview{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:14px;
  align-items:stretch;
}
.ml-crm-preview-main{
  position:relative;
  overflow:hidden;
  min-height:230px;
  padding:24px;
  border-radius:28px;
  background:linear-gradient(135deg,#0f172a,#1f2937);
  color:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.16);
}
.ml-crm-preview-kicker{
  position:relative;
  z-index:1;
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.11);
  color:#fed7aa;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.ml-crm-preview-title{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:22px;
}
.ml-crm-preview-icon{
  width:74px;
  height:74px;
  flex:0 0 74px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:26px;
  background:rgba(255,255,255,.12);
  font-size:40px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
.ml-crm-preview-title h3{
  margin:0;
  color:#fff;
  font-size:44px;
  line-height:1;
  font-weight:1000;
}
.ml-crm-preview-title p{
  margin:10px 0 0;
  color:#cbd5e1;
  font-size:16px;
  line-height:1.45;
  font-weight:850;
}
.ml-crm-preview-actions{
  position:relative;
  z-index:1;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:24px;
}
.ml-crm-preview-actions button{
  border:0;
  border-radius:999px;
  padding:10px 13px;
  background:#fff7ed;
  color:#9a3412;
  font-size:12px;
  line-height:1;
  font-weight:1000;
}
.ml-crm-preview-side{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.ml-crm-stat{
  min-height:108px;
  padding:15px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e2e8f0;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.ml-crm-stat span{
  display:block;
  color:#64748b;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.ml-crm-stat strong{
  display:block;
  margin-top:9px;
  color:#0f172a;
  font-size:28px;
  line-height:1;
  font-weight:1000;
}
.ml-crm-stat small{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  font-weight:850;
}
.ml-crm-stat.full{
  grid-column:1 / -1;
}
.ml-blueprint-detail-hero{
  position:relative;
  overflow:hidden;
  min-height:178px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  padding:22px;
  border-radius:26px;
  background:linear-gradient(135deg,#111827,#334155);
  color:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.16);
}
.ml-blueprint-detail-hero::after{
  content:"";
  position:absolute;
  right:-82px;
  top:-96px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(249,115,22,.42),transparent 66%);
  pointer-events:none;
}
.ml-blueprint-detail-main{
  position:relative;
  z-index:1;
  min-width:0;
}
.ml-blueprint-detail-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fed7aa;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.ml-blueprint-detail-title{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:16px;
}
.ml-blueprint-detail-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:23px;
  background:rgba(255,255,255,.12);
  font-size:35px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
.ml-blueprint-detail-title h3{
  margin:0;
  color:#fff;
  font-size:38px;
  line-height:1;
  font-weight:1000;
}
.ml-blueprint-detail-title p{
  margin:8px 0 0;
  color:#cbd5e1;
  font-size:15px;
  line-height:1.45;
  font-weight:850;
}
.ml-blueprint-detail-actions{
  position:relative;
  z-index:1;
  width:190px;
  display:grid;
  gap:10px;
}
.ml-blueprint-detail-status{
  width:100%;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
  font-weight:1000;
  outline:none;
}
.ml-blueprint-detail-status option{
  color:#0f172a;
}
.ml-blueprint-detail-count{
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
}
.ml-blueprint-detail-count span{
  display:block;
  color:#fed7aa;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.ml-blueprint-detail-count strong{
  display:block;
  margin-top:5px;
  color:#fff;
  font-size:21px;
  line-height:1;
  font-weight:1000;
}
.ml-blueprint-detail-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.ml-goal-workspace-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);
  gap:12px;
  align-items:start;
}
.ml-blueprint-detail-panel{
  min-width:0;
  padding:15px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--ml-line);
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.ml-blueprint-detail-panel.wide{
  grid-column:span 2;
}
.ml-goal-tree-panel{
  grid-row:span 3;
}
.ml-goal-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.ml-goal-panel-head span{
  display:block;
  color:#64748b;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
  margin-bottom:6px;
}
.ml-goal-progress{
  min-width:76px;
  padding:9px 10px;
  border-radius:16px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  text-align:right;
}
.ml-goal-progress strong{
  display:block;
  color:#9a3412;
  font-size:22px;
  line-height:1;
  font-weight:1000;
}
.ml-goal-progress span{
  display:block;
  margin-top:5px;
  color:#92400e;
  font-size:11px;
  line-height:1;
  font-weight:1000;
}
.ml-goal-tree{
  display:grid;
  gap:8px;
}
.ml-goal-node{
  position:relative;
  min-width:0;
}
.ml-goal-node-main{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) minmax(250px,auto);
  gap:10px;
  align-items:center;
  padding:11px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e2e8f0;
  box-shadow:none;
}
.ml-goal-node.depth-0 > .ml-goal-node-main{
  background:linear-gradient(135deg,#0f172a,#1f2937);
  border-color:#0f172a;
  color:#fff;
}
.ml-goal-node.depth-1 > .ml-goal-node-main{
  background:#fffbf6;
  border-color:#fed7aa;
}
.ml-goal-node.depth-2 > .ml-goal-node-main{
  background:#f8fafc;
}
.ml-goal-node.depth-3 > .ml-goal-node-main{
  background:#fff;
  border-style:dashed;
}
.ml-goal-node-icon{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#ffedd5;
  color:#9a3412;
  font-size:16px;
  font-weight:1000;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-icon{
  background:rgba(255,255,255,.12);
  color:#fed7aa;
}
.ml-goal-node-copy{
  min-width:0;
}
.ml-goal-node-copy span{
  display:block;
  color:#64748b;
  font-size:10px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
  margin-bottom:5px;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-copy span{
  color:#fed7aa;
}
.ml-goal-node-title-input{
  display:block;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:#0f172a;
  font-size:14px;
  line-height:1.25;
  font-weight:1000;
  overflow-wrap:anywhere;
  outline:none;
}
.ml-goal-node-title-input:focus{
  box-shadow:0 2px 0 #f97316;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-title-input{
  color:#fff;
  font-size:17px;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-title-input:focus{
  box-shadow:0 2px 0 #fed7aa;
}
.ml-goal-node-status{
  display:none;
}
.ml-goal-node-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.ml-goal-node-status-select{
  width:112px;
  padding:7px 8px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  outline:none;
}
.ml-goal-node-controls button{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:13px;
  line-height:1;
  font-weight:1000;
  cursor:pointer;
}
.ml-goal-node-controls button:hover{
  background:#ffedd5;
  color:#9a3412;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-status-select{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
  color:#fff;
}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-status-select option{color:#0f172a}
.ml-goal-node.depth-0 > .ml-goal-node-main .ml-goal-node-controls button{background:rgba(255,255,255,.12);color:#fff}
.ml-goal-node.done > .ml-goal-node-main{
  border-color:#86efac;
  background:#f0fdf4;
}
.ml-goal-node-children{
  display:grid;
  gap:8px;
  margin:8px 0 0 12px;
  padding-left:14px;
  border-left:2px solid #e2e8f0;
}
.ml-goal-side-panel{
  align-self:start;
}
.ml-goal-side-panel .ml-blueprint-detail-status{
  border-color:#cbd5e1;
  background:#fff;
  color:#0f172a;
}
.ml-blueprint-detail-panel h4{
  margin:0 0 11px;
  color:#0f172a;
  font-size:15px;
  line-height:1.15;
  font-weight:1000;
}
.ml-blueprint-chip-grid{
  display:grid;
  gap:8px;
}
.ml-blueprint-kpi-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.ml-blueprint-chip,
.ml-blueprint-kpi{
  padding:10px 11px;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  line-height:1.35;
  font-weight:900;
}
.ml-blueprint-kpi{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.ml-blueprint-source-list{
  display:grid;
  gap:8px;
}
.ml-blueprint-source{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 11px;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  line-height:1.25;
  font-weight:900;
}
.ml-blueprint-source::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:999px;
  background:#16a34a;
}
.ml-life-blueprint-details{
  border-radius:22px;
  background:#fff;
  border:1px solid var(--ml-line);
  box-shadow:0 10px 24px rgba(15,23,42,.045);
  overflow:hidden;
}
.ml-life-blueprint-details summary{
  cursor:pointer;
  list-style:none;
  padding:14px 16px;
  color:#0f172a;
  font-size:14px;
  line-height:1;
  font-weight:1000;
}
.ml-life-blueprint-details summary::-webkit-details-marker{
  display:none;
}
.ml-life-blueprint-details[open] summary{
  background:#fff7ed;
  color:#9a3412;
  border-bottom:1px solid #fed7aa;
}
.ml-life-blueprint-table-wrap{
  min-width:0;
  width:100%;
  overflow:auto;
  border-radius:0;
  border:0;
  background:#fff;
}
.ml-life-blueprint-table{
  width:100%;
  min-width:980px;
  border-collapse:collapse;
}
.ml-life-blueprint-table th,
.ml-life-blueprint-table td{
  padding:12px;
  border-bottom:1px solid var(--ml-line);
  color:#334155;
  font-size:12px;
  line-height:1.4;
  font-weight:850;
  text-align:left;
  vertical-align:top;
}
.ml-life-blueprint-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fafc;
  color:#0f172a;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.ml-life-blueprint-table tr.active td{
  background:#fff7ed;
}
.ml-blueprint-aspect-cell{
  min-width:132px;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.ml-blueprint-aspect-cell span{
  margin-right:7px;
}
.ml-blueprint-status-select{
  width:132px;
  padding:8px 9px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  font-size:12px;
  line-height:1;
  font-weight:1000;
  outline:none;
}
.ml-blueprint-status-select:focus{
  border-color:#fb923c;
  box-shadow:0 0 0 4px rgba(251,146,60,.14);
}
.ml-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.ml-brand{display:inline-flex;align-items:center;gap:9px;font-size:23px;line-height:1;font-weight:1000;letter-spacing:-.6px}
.ml-brand::before{content:"";width:13px;height:13px;border-radius:999px;background:linear-gradient(135deg,#fb923c,var(--ml-orange-dark));box-shadow:0 0 0 7px rgba(249,115,22,.13)}
.ml-sub-brand{margin-top:5px;color:var(--ml-muted);font-size:12px;font-weight:1000;letter-spacing:.6px;text-transform:uppercase}
.ml-date-blocks{position:relative;display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex-wrap:nowrap}
.ml-date-card{appearance:none;width:188px;min-width:188px;max-width:188px;min-height:68px;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.9);border:1px solid var(--ml-line);box-shadow:0 8px 20px rgba(15,23,42,.05);text-align:left;overflow:hidden;cursor:pointer}
.ml-date-card:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.075)}
.ml-date-card span{display:block;color:var(--ml-muted);font-size:10px;line-height:1;font-weight:1000;letter-spacing:.45px;text-transform:uppercase;margin-bottom:6px}
.ml-date-card strong{display:block;font-size:clamp(12px,1.08vw,15px);line-height:1.18;font-weight:1000;white-space:nowrap;letter-spacing:-.15px;overflow:hidden;text-overflow:ellipsis}
.ml-date-card small{display:block;margin-top:5px;color:#3730a3;font-size:12px;line-height:1;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-lunar-date-card{background:#fff7ed;border-color:rgba(249,115,22,.22)}
.ml-lunar-date-card strong{color:#9a3412}
.ml-lunar-date-card small{color:#9a3412}
.ml-month-calendar-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:360px;max-width:calc(100vw - 34px);padding:14px;border-radius:22px;background:rgba(255,255,255,.98);border:1px solid rgba(226,232,240,.96);box-shadow:0 22px 55px rgba(15,23,42,.18);backdrop-filter:blur(12px)}
.ml-calendar-hidden{display:none!important}
.ml-month-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.ml-month-calendar-head strong{color:var(--ml-dark);font-size:15px;font-weight:1000}.ml-calendar-nav{display:flex;gap:6px}.ml-calendar-nav button{border:0;border-radius:999px;padding:7px 10px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:1000;cursor:pointer}
.ml-month-calendar-weekdays,.ml-month-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.ml-month-calendar-weekdays span{text-align:center;color:#64748b;font-size:10px;font-weight:1000;text-transform:uppercase}.ml-month-calendar-day{min-height:34px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;color:#0f172a;font-size:12px;font-weight:1000;cursor:pointer}.ml-month-calendar-day:hover{background:#fff7ed;border-color:#fed7aa}.ml-month-calendar-day.today{background:#ffedd5;color:#9a3412;border-color:#fb923c}.ml-month-calendar-day.selected{background:#eef2ff;color:#3730a3;border-color:#818cf8}.ml-month-calendar-day.blank{visibility:hidden;pointer-events:none}
.ml-day-history-tabs{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:9px;margin-bottom:12px;border-radius:18px;background:#f8fafc;border:1px solid var(--ml-line);scrollbar-width:thin}.ml-day-history-tabs button{flex:0 0 auto;border:0;border-radius:999px;padding:8px 11px;background:#fff;color:#475569;font-size:12px;font-weight:1000;cursor:pointer;border:1px solid #e2e8f0}.ml-day-history-tabs button.active{background:#0f172a;color:#fff;border-color:#0f172a}.ml-day-history-tabs .ml-day-hint{flex:0 0 auto;color:#64748b;font-size:12px;font-weight:1000;padding:0 4px}
.ml-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:12px;align-items:stretch}
.ml-hero-card,.ml-block,.ml-panel,.ml-details{border-radius:26px;background:rgba(255,255,255,.88);border:1px solid rgba(226,232,240,.92);box-shadow:0 14px 34px rgba(15,23,42,.065)}
.ml-current-panel{padding:19px;color:#fff;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.96)),radial-gradient(circle at top right,rgba(249,115,22,.35),transparent 34%);border:0;position:relative;overflow:hidden}
.ml-current-panel::after{content:"";position:absolute;width:220px;height:220px;right:-90px;top:-80px;border-radius:999px;background:radial-gradient(circle,rgba(249,115,22,.45),transparent 66%);pointer-events:none}
.ml-badge{position:relative;z-index:1;display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.11);color:#fed7aa;font-size:12px;font-weight:1000;letter-spacing:.5px;text-transform:uppercase}
.ml-session-main{position:relative;z-index:1;display:flex;align-items:center;gap:14px;margin-top:16px}
.ml-session-icon{width:58px;height:58px;min-width:58px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:rgba(255,255,255,.12);font-size:31px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.ml-current-session{margin:0;font-size:35px;line-height:1.04;font-weight:1000;letter-spacing:-1px}
.ml-current-window{margin-top:7px;color:#fdba74;font-size:16px;font-weight:1000}
.ml-current-desc-box{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:17px;padding:14px;border-radius:20px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12)}
.ml-current-desc-box span,.ml-card-label,.ml-time-split span,.ml-block-head span,.ml-section-head p,.ml-top-task-form span,.ml-life-card span,.ml-info-card span,.ml-lunar-box span{color:var(--ml-muted);font-size:12px;font-weight:1000;letter-spacing:.45px;text-transform:uppercase}
.ml-current-desc-box span{color:#fed7aa;font-size:11px}
.ml-current-desc{margin:6px 0 0;color:#f8fafc;font-size:15px;line-height:1.45;font-weight:850;white-space:pre-line;overflow-wrap:anywhere}
.ml-current-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.ml-glass-btn{border:0;border-radius:999px;padding:8px 11px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:1000;cursor:pointer}
.ml-notify-btn.is-on{background:rgba(34,197,94,.20);color:#bbf7d0}
.ml-active-task-bar{position:relative;z-index:1;margin-top:12px;min-height:64px;border-radius:20px;padding:12px 14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);display:block}
.ml-active-empty{color:rgba(255,255,255,.62);font-size:13px;line-height:1.35;font-weight:950}
.ml-active-main{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;min-width:0}
.ml-active-title{display:flex;align-items:center;gap:10px;min-width:0;color:#fff;font-size:15px;line-height:1.2;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-active-dot{width:10px;height:10px;min-width:10px;border-radius:999px;background:#fb923c;box-shadow:0 0 0 6px rgba(249,115,22,.14);animation:mlPulse 1.45s infinite}
@keyframes mlPulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.16);opacity:.72}100%{transform:scale(1);opacity:1}}
.ml-active-sub{margin-top:8px;display:flex;align-items:center;gap:9px;min-width:0}
.ml-active-time{color:#fdba74;font-size:13px;font-weight:1000;white-space:nowrap;font-variant-numeric:tabular-nums}
.ml-active-progress{flex:1;min-width:70px;height:7px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.14)}
.ml-active-progress-bar{width:0%;height:100%;border-radius:999px;background:linear-gradient(90deg,#fb923c,#ea580c);transition:width .25s ease}
.ml-active-status{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.09);color:#fed7aa;font-size:11px;line-height:1;font-weight:1000;white-space:nowrap}
.ml-active-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.ml-active-actions button{border:0;border-radius:999px;padding:8px 10px;font-size:12px;font-weight:1000;cursor:pointer;white-space:nowrap}
.ml-active-actions .finish{background:#dcfce7;color:#166534}
.ml-active-actions .pause{background:#eef2ff;color:#3730a3}
.ml-active-actions .detail{background:#fff7ed;color:#9a3412}
.ml-active-detail{display:none;margin-top:12px;padding:12px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12)}
.ml-active-detail.open{display:block}
.ml-active-detail p{margin:0 0 10px;color:#e2e8f0;font-size:13px;line-height:1.45;font-weight:800;white-space:pre-line;overflow-wrap:anywhere}
.ml-active-detail .ml-subtask-list{background:rgba(255,255,255,.95)}
.ml-clock-panel{padding:18px;display:flex;flex-direction:column;justify-content:space-between}
.ml-ring-wrap{display:flex;justify-content:center;align-items:center;padding:7px 0 12px}
.ml-ring{--p:0%;width:188px;height:188px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:conic-gradient(var(--ml-orange-dark) var(--p),#e5e7eb 0);box-shadow:inset 0 0 0 1px rgba(226,232,240,.8),0 14px 30px rgba(249,115,22,.13)}
.ml-ring-inner{width:148px;height:148px;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 1px rgba(226,232,240,.9)}
.ml-live-clock{color:var(--ml-dark);font-size:28px;line-height:1;font-weight:1000;letter-spacing:.5px}
.ml-session-percent{margin-top:8px;color:var(--ml-orange-dark);font-size:28px;line-height:1;font-weight:1000}
.ml-time-split{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.ml-time-split div{padding:12px;border-radius:17px;background:#f8fafc;border:1px solid var(--ml-line)}
.ml-time-split strong{display:block;margin-top:6px;color:var(--ml-dark);font-size:18px;line-height:1;font-weight:1000}
.ml-task-panel{grid-column:1 / -1;padding:17px}
.ml-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ml-section-head h2{margin:0 0 5px;color:var(--ml-dark);font-size:19px;line-height:1.12;font-weight:1000;letter-spacing:-.35px}
.ml-section-head p{margin:0;line-height:1.35;text-transform:none;letter-spacing:0}
.ml-task-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.ml-task-count,.ml-balance-current,.ml-reset-current-tasks,.ml-reset-all-tasks,.ml-reset-fav-current,.ml-reset-fav-all{white-space:nowrap;border:0;border-radius:999px;padding:8px 10px;font-size:11px;line-height:1;font-weight:1000;cursor:pointer}
.ml-task-count{background:#fff7ed;color:#9a3412;font-size:12px;padding:8px 11px}.ml-balance-current{background:#dcfce7;color:#166534}.ml-reset-current-tasks{background:#eef2ff;color:#3730a3}.ml-reset-all-tasks{background:#fff7ed;color:#9a3412}.ml-reset-fav-current{background:#fef3c7;color:#92400e}.ml-reset-fav-all{background:#fae8ff;color:#86198f}
.ml-task-row{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:14px;align-items:start}
.ml-top-task-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-radius:18px;background:#f8fafc;border:1px solid var(--ml-line)}
.ml-top-task-form label{display:block}.ml-top-task-form .ml-full{grid-column:1 / -1}
.ml-top-task-form input,.ml-top-task-form textarea,.ml-top-task-form select,.ml-birth-box input{width:100%;margin-top:5px;padding:9px 10px;border-radius:13px;border:1px solid #cbd5e1;background:#fff;color:var(--ml-dark);outline:none;font-size:13px;font-weight:850}
.ml-top-task-form textarea{min-height:70px;max-height:130px;resize:vertical;line-height:1.45}
.ml-top-task-form input:focus,.ml-top-task-form textarea:focus,.ml-top-task-form select:focus,.ml-birth-box input:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.14)}
.ml-top-add-task{grid-column:1 / -1;border:0;border-radius:999px;padding:11px 14px;background:linear-gradient(90deg,#fb923c,var(--ml-orange-dark));color:#fff;font-size:13px;font-weight:1000;cursor:pointer;box-shadow:0 10px 18px rgba(249,115,22,.20)}
.ml-current-task-wrap{display:grid;gap:10px}.ml-current-task-list,.ml-task-list,.ml-history-list,.ml-session-desc-list{display:grid;gap:9px}
.ml-allocation-panel{padding:12px;border-radius:20px;background:#fff;border:1px solid var(--ml-line);box-shadow:0 10px 26px rgba(15,23,42,.045)}
.ml-allocation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.ml-allocation-head strong{display:block;color:var(--ml-dark);font-size:14px;font-weight:1000}.ml-allocation-head span,.ml-allocation-hint{display:block;margin-top:4px;color:var(--ml-muted);font-size:12px;font-weight:900}.ml-allocation-hint{margin-top:0;text-align:right}
.ml-time-budget-bar{position:relative;display:flex;width:100%;min-height:58px;border-radius:18px;background:#f1f5f9;border:1px solid #e2e8f0;overflow:hidden;user-select:none;touch-action:none}
.ml-budget-empty{display:flex;align-items:center;justify-content:center;width:100%;color:var(--ml-muted);font-size:13px;font-weight:850;text-align:center;padding:12px}
.ml-budget-segment{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 8px;background:linear-gradient(135deg,#fff7ed,#ffffff);border-right:1px solid rgba(226,232,240,.95)}
.ml-budget-segment:nth-child(4n+1){background:linear-gradient(135deg,#fff7ed,#ffffff)}.ml-budget-segment:nth-child(4n+2){background:linear-gradient(135deg,#eef2ff,#ffffff)}.ml-budget-segment:nth-child(4n+3){background:linear-gradient(135deg,#ecfeff,#ffffff)}.ml-budget-segment:nth-child(4n+4){background:linear-gradient(135deg,#f0fdf4,#ffffff)}
.ml-budget-title{display:block;max-width:100%;color:#0f172a;font-size:12px;line-height:1.15;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-budget-meta{display:block;margin-top:4px;color:#9a3412;font-size:11px;line-height:1;font-weight:1000;white-space:nowrap}
.ml-budget-segment.locked{background:linear-gradient(135deg,#ffedd5,#ffffff)!important;box-shadow:inset 0 0 0 1px rgba(249,115,22,.28)}
.ml-budget-segment.auto{background:linear-gradient(135deg,#f8fafc,#ffffff)}
.ml-budget-lock{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;width:15px;height:15px;border-radius:999px;background:#fed7aa;color:#9a3412;font-size:9px;font-weight:1000;vertical-align:middle}
.ml-pill.locked{background:#ffedd5;color:#9a3412}
.ml-pill.favorite{background:#fef3c7;color:#92400e}.ml-budget-segment.free{background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 8px,#eef2f7 8px,#eef2f7 16px);color:#64748b;border-right:0}.ml-budget-segment.free .ml-budget-meta{color:#64748b}

.ml-budget-handle{position:absolute;top:0;right:-7px;z-index:5;width:14px;height:100%;cursor:col-resize;display:flex;align-items:center;justify-content:center}.ml-budget-handle::before{content:"";width:4px;height:34px;border-radius:999px;background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.12)}
.ml-task-item,.ml-history-item,.ml-desc-item,.ml-empty{padding:11px;border-radius:18px;background:#f8fafc;border:1px solid var(--ml-line)}
.ml-task-item{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:flex-start;padding:14px;border-radius:22px;background:linear-gradient(135deg,#ffffff,#fffaf4);box-shadow:0 10px 26px rgba(15,23,42,.055);transition:.2s ease}
.ml-task-item:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.075)}
.ml-task-item.running{border-color:rgba(249,115,22,.62);background:linear-gradient(135deg,#fff7ed,#ffffff 62%);box-shadow:0 18px 42px rgba(249,115,22,.14)}
.ml-task-item.dragging{opacity:.45}.ml-task-item.ml-drop-after{box-shadow:inset 0 -3px 0 #f97316,0 10px 26px rgba(15,23,42,.055)}.ml-drag-handle{width:24px;height:24px;margin-top:2px;border:0;border-radius:9px;background:#f1f5f9;color:#64748b;font-size:14px;font-weight:1000;cursor:grab}.ml-drag-handle:active{cursor:grabbing}
.ml-task-check{width:21px;height:21px;margin-top:3px;accent-color:var(--ml-orange-dark);cursor:pointer}.ml-task-left{display:flex;align-items:flex-start;gap:9px}
.ml-task-content{min-width:0}.ml-task-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ml-task-title-row h3,.ml-task-content h3{margin:0;color:var(--ml-dark);font-size:15px;line-height:1.25;font-weight:1000;min-width:0;overflow-wrap:anywhere}
.ml-task-desc-text{margin:5px 0 0;color:var(--ml-muted);font-size:13px;line-height:1.4;font-weight:750;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}.ml-task-item.expanded .ml-task-desc-text{display:block;-webkit-line-clamp:unset;overflow:visible}
.ml-subtask-list{display:grid;gap:6px;margin-top:8px;padding:8px;border-radius:14px;background:#fff;border:1px dashed #cbd5e1}.ml-subtask-row{display:flex;align-items:flex-start;gap:7px;color:#475569;font-size:13px;line-height:1.35;font-weight:850}.ml-subtask-row input{width:16px;height:16px;margin-top:1px;accent-color:var(--ml-orange-dark);cursor:pointer}.ml-subtask-row.done span{color:#94a3b8;text-decoration:line-through}.ml-subtask-progress{margin-top:7px;color:#9a3412;font-size:11px;font-weight:1000}
.ml-task-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ml-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:11px;font-weight:1000}.ml-pill.session{background:#eef2ff;color:#3730a3}.ml-pill.priority{background:#dcfce7;color:#166534}.ml-pill.normal{background:#f1f5f9;color:#475569}.ml-pill.time{background:#ecfeff;color:#155e75}.ml-pill.over{background:#fee2e2;color:#b91c1c}
.ml-mini-progress{margin-top:9px;height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden}.ml-mini-progress div{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#fb923c,#ea580c);transition:width .25s ease}.ml-task-time-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.ml-task-time-row div{padding:8px;border-radius:13px;background:#fff;border:1px solid #e2e8f0}.ml-task-time-row span{display:block;color:var(--ml-muted);font-size:10px;font-weight:1000;text-transform:uppercase}.ml-task-time-row strong{display:block;margin-top:4px;color:var(--ml-dark);font-size:12px;font-weight:1000;font-variant-numeric:tabular-nums}
.ml-task-actions,.ml-btn-row{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.ml-btn,.ml-tab,.ml-clear-history{border:0;border-radius:999px;padding:7px 9px;background:#f1f5f9;color:#475569;font-size:12px;line-height:1;font-weight:1000;cursor:pointer}.ml-btn.primary{background:#eef2ff;color:#3730a3}.ml-btn.start{background:#fff7ed;color:#9a3412}.ml-btn.finish{background:#dcfce7;color:#166534}.ml-btn.fav{background:#fef3c7;color:#92400e}.ml-btn.fav.saved{background:#fde68a;color:#78350f}.ml-btn.danger,.ml-clear-history{background:#fee2e2;color:#b91c1c}.ml-empty{text-align:center;color:var(--ml-muted);font-size:14px;font-weight:850}.ml-block{margin-top:14px;padding:17px}.ml-block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}.ml-block-head h2{margin:5px 0 0;color:var(--ml-dark);font-size:24px;line-height:1.05;font-weight:1000;letter-spacing:-.7px}.ml-block-head p{max-width:470px;margin:0;color:var(--ml-muted);font-size:13px;line-height:1.4;font-weight:850;text-align:right}
.ml-session-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}.ml-session-item{cursor:pointer;min-height:150px;padding:12px;border-radius:20px;background:#fff;border:1px solid var(--ml-line);box-shadow:0 8px 20px rgba(15,23,42,.045);transition:.22s ease}.ml-session-item.active{transform:translateY(-2px);border-color:rgba(249,115,22,.60);background:radial-gradient(circle at top right,rgba(249,115,22,.16),transparent 42%),#fff7ed;box-shadow:0 16px 34px rgba(249,115,22,.16)}.ml-session-item.selected{border-color:rgba(79,70,229,.62);box-shadow:0 16px 34px rgba(79,70,229,.12);outline:3px solid rgba(79,70,229,.10)}.ml-session-item.done{opacity:.58}.ml-small-icon{width:38px;height:38px;border-radius:15px;background:#fff7ed;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:9px}.ml-session-item h3{margin:0;color:var(--ml-dark);font-size:14px;line-height:1.2;font-weight:1000}.ml-session-item p{margin:5px 0 10px;color:var(--ml-muted);font-size:11px;line-height:1.35;font-weight:850}.ml-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:1000}.ml-session-item.active .ml-status{background:#fed7aa;color:#9a3412}.ml-session-item.selected{outline:3px solid rgba(79,70,229,.22);border-color:#818cf8!important;background:radial-gradient(circle at top right,rgba(79,70,229,.12),transparent 42%),#ffffff}.ml-progress{width:100%;height:10px;margin:10px 0;border-radius:999px;background:#e5e7eb;overflow:hidden}.ml-progress.slim{height:8px;margin:9px 0}.ml-progress-bar{width:0%;height:100%;border-radius:999px;background:linear-gradient(90deg,#fb923c,var(--ml-orange-dark));transition:width .35s ease}.ml-life-bar{background:linear-gradient(90deg,#818cf8,var(--ml-indigo))}.ml-session-small-time{display:grid;gap:3px;color:var(--ml-muted);font-size:11px;font-weight:850}
.ml-life-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ml-life-card{padding:15px;border-radius:21px;background:radial-gradient(circle at top right,rgba(249,115,22,.10),transparent 38%),#fff;border:1px solid var(--ml-line);box-shadow:0 10px 24px rgba(15,23,42,.05)}.ml-life-card > div:first-child{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ml-life-card strong{color:var(--ml-orange-dark);font-size:25px;line-height:1;font-weight:1000}.ml-life-card.life strong{color:var(--ml-indigo)}.ml-life-card p{margin:0;color:var(--ml-muted);font-size:13px;font-weight:850}.ml-details{margin-top:12px;overflow:hidden;box-shadow:none}.ml-details summary,.ml-advanced-details summary{cursor:pointer;list-style:none;padding:14px 16px;background:#fff;color:var(--ml-dark);border-bottom:1px solid var(--ml-line);font-size:15px;font-weight:1000}.ml-details summary::-webkit-details-marker,.ml-advanced-details summary::-webkit-details-marker{display:none}.ml-details[open] summary,.ml-advanced-details[open] summary{background:#fff7ed;color:#9a3412}.ml-panel{padding:15px;margin-top:12px}.ml-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.ml-tab.active{background:var(--ml-dark);color:#fff}.ml-session-filter-wrap{display:flex;align-items:flex-start;gap:10px;padding:10px;margin-bottom:12px;border-radius:18px;background:#f8fafc;border:1px solid var(--ml-line)}.ml-filter-label{flex:0 0 auto;padding:7px 0;color:var(--ml-muted);font-size:12px;font-weight:1000;letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}.ml-session-filter-tabs{display:flex;gap:7px;flex-wrap:wrap}.ml-session-filter-tabs .ml-tab{padding:8px 10px;background:#fff;border:1px solid var(--ml-line);color:#475569}.ml-session-filter-tabs .ml-tab.active{background:var(--ml-dark);color:#fff}.ml-history-list{max-height:330px;overflow:auto;padding-right:4px}.ml-history-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ml-history-top strong,.ml-history-item strong{display:block;color:var(--ml-dark);font-size:14px;line-height:1.25;font-weight:1000}.ml-history-item span{display:block;margin-top:5px;color:var(--ml-muted);font-size:13px;line-height:1.35;font-weight:800}.ml-history-desc{white-space:pre-line;overflow-wrap:anywhere}.ml-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding:10px;border-radius:18px;background:#f8fafc;border:1px solid var(--ml-line)}.ml-history-page-info{color:var(--ml-muted);font-size:12px;line-height:1.35;font-weight:1000}.ml-history-page-actions{display:flex;gap:7px;flex-wrap:wrap}.ml-history-page-btn{border:0;border-radius:999px;padding:8px 11px;background:#eef2ff;color:#3730a3;font-size:12px;line-height:1;font-weight:1000;cursor:pointer}.ml-history-page-btn:disabled{cursor:not-allowed;opacity:.45}
.ml-desc-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ml-desc-item strong{display:block;color:var(--ml-dark);font-size:15px;font-weight:1000}.ml-desc-item p{margin:5px 0 0;color:var(--ml-muted);font-size:13px;line-height:1.4;font-weight:800;white-space:pre-line;overflow-wrap:anywhere}.ml-advanced-details{margin-top:12px;border-radius:24px;background:#fff;border:1px solid var(--ml-line);box-shadow:0 10px 24px rgba(15,23,42,.045);overflow:hidden}.ml-advanced-body{padding:0 12px 12px}.ml-calendar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:12px}.ml-info-card{padding:13px;border-radius:17px;background:#f8fafc;border:1px solid var(--ml-line)}.ml-info-card strong{display:block;margin-top:7px;color:var(--ml-dark);font-size:20px;font-weight:1000}.ml-lunar-box{padding:14px;border-radius:19px;background:#eef2ff;border:1px solid rgba(79,70,229,.18);margin-bottom:12px}.ml-lunar-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.ml-lunar-top strong{color:var(--ml-indigo);font-size:15px;font-weight:1000;text-align:right}.ml-lunar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ml-lunar-grid div{padding:12px;border-radius:14px;background:#fff;border:1px solid rgba(79,70,229,.13)}.ml-lunar-grid strong{display:block;margin-top:6px;color:var(--ml-dark);font-size:18px;font-weight:1000}.ml-birth-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px;border-radius:18px;background:#fff7ed;border:1px solid rgba(249,115,22,.24)}.ml-birth-box label{color:#9a3412;font-size:14px;font-weight:1000}.ml-birth-box input{width:120px;margin-top:0;background:#fff}.ml-birth-box small{color:#9a3412;font-size:13px;font-weight:800}
.ml-text-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.58);backdrop-filter:blur(10px)}.ml-text-modal-card{width:min(680px,100%);border-radius:24px;background:#fff;border:1px solid rgba(226,232,240,.95);box-shadow:0 30px 90px rgba(15,23,42,.28);padding:16px}.ml-text-modal-card h3{margin:0;color:var(--ml-dark);font-size:19px;line-height:1.2;font-weight:1000}.ml-text-modal-card p{margin:6px 0 12px;color:var(--ml-muted);font-size:13px;line-height:1.45;font-weight:800}.ml-text-editor{width:100%;min-height:190px;max-height:52vh;resize:vertical;padding:12px 13px;border-radius:17px;border:1px solid #cbd5e1;background:#f8fafc;color:var(--ml-dark);outline:none;font-size:14px;line-height:1.55;font-weight:850}.ml-edit-task-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.ml-edit-task-form label{display:block}.ml-edit-task-form .ml-full{grid-column:1 / -1}.ml-edit-task-form span{display:block;color:var(--ml-muted);font-size:12px;font-weight:1000;letter-spacing:.45px;text-transform:uppercase;margin-bottom:6px}.ml-edit-task-form input,.ml-edit-task-form textarea,.ml-edit-task-form select{width:100%;padding:11px 12px;border-radius:15px;border:1px solid #cbd5e1;background:#f8fafc;color:var(--ml-dark);outline:none;font-size:14px;line-height:1.45;font-weight:850}.ml-edit-task-form textarea{min-height:150px;max-height:42vh;resize:vertical;white-space:pre-wrap}.ml-text-modal-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}.ml-modal-btn{border:0;border-radius:999px;padding:10px 14px;font-size:13px;line-height:1;font-weight:1000;cursor:pointer}.ml-modal-btn.cancel{background:#f1f5f9;color:#475569}.ml-modal-btn.save{background:linear-gradient(90deg,#fb923c,var(--ml-orange-dark));color:#fff}

.ml-favorite-list{display:grid;gap:9px}.ml-favorite-item{padding:12px;border-radius:18px;background:linear-gradient(135deg,#fff,#fffbeb);border:1px solid rgba(245,158,11,.22);box-shadow:0 8px 20px rgba(15,23,42,.045)}.ml-favorite-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ml-favorite-top strong{display:block;color:var(--ml-dark);font-size:14px;line-height:1.25;font-weight:1000}.ml-favorite-top span{display:block;margin-top:5px;color:#92400e;font-size:12px;line-height:1.35;font-weight:900}.ml-favorite-desc{display:block;margin-top:8px;color:#64748b;font-size:13px;line-height:1.4;font-weight:800;white-space:pre-line;overflow-wrap:anywhere}.ml-task-floating-popup{position:fixed;right:24px;bottom:24px;z-index:2147483000;width:340px;max-width:calc(100vw - 28px);padding:16px;border-radius:24px;background:radial-gradient(circle at top left,rgba(249,115,22,.22),transparent 38%),linear-gradient(145deg,#ffffff,#fff7ed);border:1px solid rgba(249,115,22,.26);box-shadow:0 24px 70px rgba(15,23,42,.22);font-family:Arial,Helvetica,sans-serif;color:#0f172a;animation:mlPopupShow .28s ease both}.ml-popup-hidden{display:none!important}.ml-floating-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.ml-floating-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#ffedd5;color:#9a3412;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.35px}.ml-floating-dot{width:8px;height:8px;border-radius:999px;background:#f97316;box-shadow:0 0 0 6px rgba(249,115,22,.15);animation:mlPulse 1.45s infinite}.ml-floating-close{border:0;width:28px;height:28px;border-radius:999px;background:rgba(15,23,42,.07);color:#475569;font-size:20px;line-height:1;cursor:pointer}.ml-floating-title{font-size:15px;line-height:1.25;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-floating-meta{margin-top:5px;color:#64748b;font-size:12px;line-height:1.35;font-weight:900}.ml-floating-time{margin:12px 0 8px;font-size:32px;line-height:1;font-weight:1000;color:#ea580c;font-variant-numeric:tabular-nums}.ml-floating-progress{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden}.ml-floating-progress div{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#fb923c,#ea580c);transition:width .2s ease}.ml-floating-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.ml-floating-actions button{border:0;border-radius:999px;padding:9px 10px;font-size:12px;font-weight:1000;cursor:pointer}.ml-floating-actions .done{background:#dcfce7;color:#166534}.ml-floating-actions .pause{background:#eef2ff;color:#3730a3}.ml-floating-actions .detail{background:#fff7ed;color:#9a3412}.ml-floating-actions .open{background:#f1f5f9;color:#475569}.ml-floating-detail{display:none;margin-top:10px;padding:10px;border-radius:16px;background:#fff;border:1px solid #e2e8f0}.ml-floating-detail.open{display:block}.ml-floating-detail p{margin:0 0 8px;color:#475569;font-size:12px;line-height:1.4;font-weight:800;white-space:pre-line}.ml-floating-detail .ml-subtask-list{margin-top:0;padding:7px}.ml-floating-paused .ml-floating-dot{animation:none;background:#94a3b8;box-shadow:none}.ml-floating-paused .ml-floating-badge{background:#f1f5f9;color:#475569}@keyframes mlPopupShow{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}

@media(max-width:1080px){.ml-hero-grid{grid-template-columns:1fr 1fr}.ml-current-panel,.ml-task-panel{grid-column:1 / -1}.ml-task-row{grid-template-columns:1fr}.ml-session-grid{grid-template-columns:repeat(4,1fr)}.ml-life-grid{grid-template-columns:repeat(2,1fr)}.ml-life-blueprint-layout{grid-template-columns:minmax(0,1fr)}.ml-life-blueprint-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-blueprint-tool{grid-template-columns:56px minmax(0,1fr);min-height:190px;padding:17px}.ml-blueprint-icon{width:56px;height:56px;font-size:30px}.ml-blueprint-tool strong{font-size:22px}.ml-crm-preview{grid-template-columns:1fr}.ml-crm-preview-side{grid-template-columns:repeat(4,minmax(0,1fr))}.ml-crm-stat.full{grid-column:1 / -1}.ml-blueprint-detail-hero{grid-template-columns:1fr}.ml-blueprint-detail-actions{width:100%;grid-template-columns:1fr 1fr}.ml-blueprint-detail-grid,.ml-goal-workspace-grid{grid-template-columns:1fr}.ml-blueprint-detail-panel.wide{grid-column:auto}}
@media(max-width:720px){.ml-focus-app{margin:12px auto;padding:12px;border-radius:24px}.ml-topbar,.ml-block-head,.ml-life-blueprint-head{align-items:flex-start;flex-direction:column}.ml-block-head p,.ml-life-blueprint-head p{text-align:left}.ml-date-blocks{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.ml-date-card{width:auto;min-width:0;max-width:none}.ml-date-card strong{font-size:12px;letter-spacing:-.25px}.ml-hero-grid,.ml-time-split,.ml-session-grid,.ml-life-grid,.ml-life-blueprint-layout,.ml-top-task-form,.ml-calendar-grid,.ml-lunar-grid,.ml-edit-task-form{grid-template-columns:1fr}.ml-life-blueprint-block{padding:12px;border-radius:22px}.ml-life-blueprint-head h2{font-size:27px}.ml-life-blueprint-toolbar{position:static;display:grid;grid-template-columns:1fr;gap:10px;padding:0;overflow:visible}.ml-blueprint-tool{grid-template-columns:52px minmax(0,1fr);min-height:172px;padding:16px;border-radius:22px}.ml-blueprint-icon{width:52px;height:52px;border-radius:17px;font-size:28px}.ml-blueprint-tool strong{font-size:21px}.ml-blueprint-tool small{font-size:13px}.ml-crm-preview{grid-template-columns:1fr}.ml-crm-preview-main{min-height:0;padding:18px;border-radius:24px}.ml-crm-preview-title{align-items:flex-start;gap:12px}.ml-crm-preview-icon{width:58px;height:58px;flex-basis:58px;border-radius:20px;font-size:30px}.ml-crm-preview-title h3{font-size:31px}.ml-crm-preview-title p{font-size:14px}.ml-crm-preview-actions{display:grid;grid-template-columns:1fr}.ml-crm-preview-side{grid-template-columns:1fr}.ml-crm-stat{min-height:0}.ml-blueprint-detail-hero{min-height:0;grid-template-columns:1fr;padding:17px;border-radius:22px}.ml-blueprint-detail-title{align-items:flex-start}.ml-blueprint-detail-icon{width:52px;height:52px;flex-basis:52px;border-radius:18px;font-size:28px}.ml-blueprint-detail-title h3{font-size:30px}.ml-blueprint-detail-actions{width:100%;grid-template-columns:1fr}.ml-blueprint-detail-grid,.ml-blueprint-kpi-grid,.ml-goal-workspace-grid{grid-template-columns:1fr}.ml-blueprint-detail-panel.wide{grid-column:auto}.ml-goal-panel-head{display:grid}.ml-goal-progress{text-align:left}.ml-goal-node-main{grid-template-columns:30px minmax(0,1fr);align-items:start}.ml-goal-node-controls{grid-column:2;justify-content:flex-start}.ml-goal-node-status-select{width:120px}.ml-goal-node-children{margin-left:8px;padding-left:10px}.ml-life-blueprint-table{min-width:840px}.ml-top-task-form .ml-full,.ml-top-add-task{grid-column:auto}.ml-current-session{font-size:29px}.ml-ring{width:170px;height:170px}.ml-ring-inner{width:132px;height:132px}.ml-live-clock{font-size:24px}.ml-current-desc-box,.ml-current-actions,.ml-section-head,.ml-desc-item,.ml-lunar-top,.ml-active-main{align-items:flex-start;grid-template-columns:1fr;flex-direction:column}.ml-active-actions{justify-content:flex-start}.ml-active-status{display:none}.ml-task-head-actions{justify-content:flex-start}.ml-session-filter-wrap{display:block}.ml-filter-label{padding:0;margin-bottom:8px}.ml-task-item{grid-template-columns:1fr}.ml-task-actions{justify-content:flex-start}.ml-task-time-row{grid-template-columns:1fr}.ml-birth-box{display:block}.ml-birth-box input{width:100%;margin:8px 0}.ml-text-modal{align-items:flex-end;padding:10px}.ml-text-modal-card{border-radius:22px}.ml-modal-btn{flex:1}.ml-history-pagination{display:grid;grid-template-columns:1fr}.ml-history-page-actions{display:grid;grid-template-columns:1fr 1fr}.ml-history-page-btn{width:100%}.ml-budget-title{font-size:11px}.ml-budget-meta{font-size:10px}}

/* Life CRM v2: 6-aspect shell first, deep goal CRUD later. */
.ml-focus-app[data-life-goals-v1="true"]{
  max-width:1400px;
  background:#f6f8fb;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
  padding:20px;
  border-radius:24px;
  background:#fff;
  border:1px solid #dde4ee;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
  align-items:center;
  padding:2px 2px 16px;
  border-bottom:1px solid #e7edf5;
  margin-bottom:18px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
  font-size:32px;
  letter-spacing:0;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head p{
  max-width:600px;
  font-size:14px;
  line-height:1.5;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
  position:sticky;
  top:14px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-self:start;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
  grid-template-columns:54px minmax(0,1fr);
  min-height:136px;
  padding:16px;
  border-radius:18px;
  border-color:#e3eaf3;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool::after{
  display:none;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool:hover,
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool.active{
  background:#f8fafc;
  border-color:#2563eb;
  box-shadow:0 12px 28px rgba(37,99,235,.12);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  background:#eef4ff;
  font-size:28px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool strong{
  font-size:20px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool small{
  margin-top:7px;
  font-size:13px;
  line-height:1.35;
}
.ml-blueprint-tool-modules{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:10px;
}
.ml-blueprint-tool-modules b{
  padding:4px 7px;
  border-radius:999px;
  background:#eef2f7;
  color:#334155;
  font-size:10px;
  line-height:1;
  font-weight:900;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool em{
  margin-top:10px;
  color:#64748b;
  font-size:11px;
}
.ml-crm-dashboard{
  display:grid;
  gap:14px;
  min-width:0;
}
.ml-crm-command{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.ml-crm-search-box{
  min-width:0;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  min-height:48px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid #dbe4ef;
  background:#fff;
}
.ml-crm-search-box span{
  color:#64748b;
  font-size:20px;
  font-weight:900;
}
.ml-crm-search-box input{
  min-width:0;
  border:0;
  outline:0;
  color:#0f172a;
  font-size:14px;
  font-weight:800;
  background:transparent;
}
.ml-crm-command button{
  min-height:48px;
  padding:0 14px;
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
}
.ml-crm-command button + button{
  background:#fff;
  color:#0f172a;
}
.ml-crm-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:16px;
  align-items:stretch;
  padding:22px;
  border-radius:22px;
  background:linear-gradient(135deg,#172033,#26364d);
  color:#fff;
  box-shadow:0 16px 38px rgba(15,23,42,.14);
}
.ml-crm-hero-copy{
  min-width:0;
}
.ml-crm-hero-kicker{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#dbeafe;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.ml-crm-hero-title{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:18px;
}
.ml-crm-hero-title > span{
  width:66px;
  height:66px;
  flex:0 0 66px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:rgba(255,255,255,.12);
  font-size:34px;
}
.ml-crm-hero-title h3{
  margin:0;
  color:#fff;
  font-size:42px;
  line-height:1;
  font-weight:1000;
}
.ml-crm-hero-title p{
  margin:9px 0 0;
  max-width:650px;
  color:#d5deea;
  font-size:15px;
  line-height:1.45;
  font-weight:800;
}
.ml-crm-hero-tags,
.ml-crm-chip-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.ml-crm-hero-tags span,
.ml-crm-chip-line span{
  padding:7px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#e2e8f0;
  font-size:12px;
  font-weight:900;
}
.ml-crm-chip-line span{
  background:#eef2f7;
  color:#334155;
}
.ml-crm-hero-side{
  display:grid;
  gap:10px;
  align-content:start;
  min-width:0;
}
.ml-crm-hero-side label{
  color:#cbd5e1;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.ml-crm-focus-note{
  display:grid;
  gap:7px;
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
}
.ml-crm-focus-note strong{
  color:#fff;
  font-size:13px;
  font-weight:1000;
}
.ml-crm-focus-note span{
  color:#d5deea;
  font-size:12px;
  line-height:1.45;
  font-weight:800;
}
.ml-crm-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.ml-crm-mini-stat,
.ml-crm-capability-card,
.ml-crm-panel{
  min-width:0;
  border:1px solid #e1e8f0;
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.ml-crm-mini-stat{
  min-height:92px;
  padding:14px;
}
.ml-crm-mini-stat span,
.ml-crm-panel-head span{
  display:block;
  color:#64748b;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.ml-crm-mini-stat strong{
  display:block;
  margin-top:9px;
  color:#0f172a;
  font-size:30px;
  line-height:1;
  font-weight:1000;
}
.ml-crm-mini-stat small{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
}
.ml-crm-capability-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.ml-crm-capability-card{
  min-height:172px;
  padding:16px;
  display:grid;
  align-content:start;
  gap:12px;
}
.ml-crm-capability-top{
  display:flex;
  align-items:center;
  gap:10px;
}
.ml-crm-capability-top span{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#eef4ff;
  color:#1d4ed8;
  font-size:18px;
  font-weight:1000;
}
.ml-crm-capability-top strong{
  color:#0f172a;
  font-size:17px;
  font-weight:1000;
}
.ml-crm-capability-card p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
  font-weight:800;
}
.ml-crm-capability-card div:last-child{
  display:flex;
  align-items:end;
  gap:7px;
  margin-top:auto;
}
.ml-crm-capability-card b{
  color:#0f172a;
  font-size:24px;
  line-height:1;
}
.ml-crm-capability-card small{
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.ml-crm-bottom-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);
  gap:12px;
}
.ml-crm-panel{
  padding:16px;
}
.ml-crm-panel-head strong{
  display:block;
  margin-top:6px;
  color:#0f172a;
  font-size:18px;
  line-height:1.2;
  font-weight:1000;
}
.ml-crm-panel p{
  margin:12px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
  font-weight:800;
}
.ml-crm-resource-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.ml-crm-resource-row{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  min-height:42px;
  padding:8px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e7edf5;
}
.ml-crm-resource-row span{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:1000;
}
.ml-crm-resource-row strong{
  min-width:0;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ml-crm-resource-row small{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

@media(max-width:1080px){
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
    grid-template-columns:1fr;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
    position:static;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ml-crm-hero,
  .ml-crm-bottom-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .ml-focus-app[data-life-goals-v1="true"]{
    margin:0;
    padding:10px;
    border-radius:0;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
    padding:12px;
    border-radius:18px;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
    font-size:26px;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:2px 2px 10px;
    scroll-snap-type:x mandatory;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
    flex:0 0 292px;
    scroll-snap-align:start;
    min-height:146px;
  }
  .ml-crm-command{
    grid-template-columns:1fr;
  }
  .ml-crm-command button{
    width:100%;
  }
  .ml-crm-hero{
    padding:16px;
    border-radius:18px;
  }
  .ml-crm-hero-title{
    align-items:flex-start;
  }
  .ml-crm-hero-title > span{
    width:54px;
    height:54px;
    flex-basis:54px;
    border-radius:16px;
    font-size:28px;
  }
  .ml-crm-hero-title h3{
    font-size:30px;
  }
  .ml-crm-summary-grid,
  .ml-crm-capability-grid{
    grid-template-columns:1fr;
  }
  .ml-crm-resource-row{
    grid-template-columns:30px minmax(0,1fr);
  }
  .ml-crm-resource-row small{
    grid-column:2;
  }
}


/* ===== FINAL V12: COMPACT TASK FLOW - KHÔNG TRÀN MÀN HÌNH KHI NHIỀU TASK ===== */
.ml-focus-app{
  overflow-x:hidden;
}
.ml-focus-app *{
  min-width:0;
}
.ml-task-panel{
  overflow:hidden;
}
.ml-task-row{
  grid-template-columns:minmax(280px,.62fr) minmax(0,1.38fr);
  gap:12px;
}
.ml-top-task-form{
  position:sticky;
  top:10px;
  align-self:start;
  max-height:calc(100vh - 24px);
  overflow:auto;
  padding:10px;
}
.ml-top-task-form textarea{
  min-height:54px;
  max-height:92px;
}
.ml-current-task-wrap{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:10px;
}
.ml-allocation-panel{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  padding:10px;
}
.ml-allocation-head{
  align-items:center;
  margin-bottom:8px;
}
.ml-allocation-hint{
  max-width:190px;
  line-height:1.25;
}
.ml-time-budget-bar{
  width:100%;
  max-width:100%;
  min-height:46px;
  border-radius:16px;
  overflow:hidden;
}
.ml-budget-segment{
  padding:7px 6px;
}
.ml-budget-title{
  font-size:11px;
  max-width:100%;
}
.ml-budget-meta{
  font-size:10px;
}
.ml-budget-handle{
  right:-6px;
  width:12px;
}
.ml-budget-handle::before{
  width:4px;
  height:28px;
}
.ml-current-task-list{
  max-height:clamp(420px, 56vh, 680px);
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  scroll-behavior:smooth;
}
.ml-current-task-list::-webkit-scrollbar{
  width:7px;
}
.ml-current-task-list::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}
.ml-task-item{
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px;
  padding:10px 11px;
  border-radius:18px;
  box-shadow:0 8px 20px rgba(15,23,42,.045);
}
.ml-task-left{
  gap:7px;
}
.ml-drag-handle{
  width:22px;
  height:22px;
  border-radius:8px;
}
.ml-task-check{
  width:20px;
  height:20px;
}
.ml-task-title-row h3,.ml-task-content h3{
  font-size:14px;
  line-height:1.22;
}
.ml-current-task-list .ml-task-desc-text,
.ml-task-list .ml-task-desc-text{
  display:none;
}
.ml-current-task-list .ml-task-item.expanded .ml-task-desc-text,
.ml-task-list .ml-task-item.expanded .ml-task-desc-text{
  display:block;
  -webkit-line-clamp:unset;
  overflow:visible;
}
.ml-task-meta{
  gap:5px;
  margin-top:6px;
}
.ml-pill{
  padding:4px 7px;
  font-size:10.5px;
}
.ml-mini-progress{
  margin-top:7px;
  height:6px;
}
.ml-current-task-list .ml-task-time-row,
.ml-task-list .ml-task-time-row{
  display:none;
}
.ml-current-task-list .ml-task-item.running .ml-task-time-row,
.ml-current-task-list .ml-task-item.expanded .ml-task-time-row,
.ml-task-list .ml-task-item.running .ml-task-time-row,
.ml-task-list .ml-task-item.expanded .ml-task-time-row{
  display:grid;
}
.ml-task-time-row{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:7px;
}
.ml-task-time-row div{
  padding:6px 7px;
  border-radius:11px;
}
.ml-task-actions{
  gap:5px;
  flex-wrap:nowrap;
  max-width:360px;
}
.ml-task-actions .ml-btn{
  padding:7px 8px;
  font-size:11px;
  white-space:nowrap;
}
.ml-task-actions .ml-btn[data-action="edit-task"],
.ml-task-actions .ml-btn[data-action="reset-time"]{
  background:#f8fafc;
}
.ml-task-detail-zone{
  margin-top:7px;
}
.ml-subtask-list{
  padding:7px;
  gap:5px;
}
.ml-subtask-row{
  font-size:12.5px;
}
.ml-active-task-bar{
  overflow:hidden;
}

@media(max-width:900px){
  .ml-task-row{
    grid-template-columns:minmax(250px,.55fr) minmax(0,1.45fr);
  }
  .ml-task-actions{
    max-width:280px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

@media(max-width:980px){
  .ml-task-row{
    grid-template-columns:1fr;
  }
  .ml-top-task-form{
    position:relative;
    top:auto;
    max-height:none;
  }
  .ml-current-task-list{
    max-height:560px;
  }
}

@media(max-width:720px){
  .ml-task-panel{
    padding:13px;
  }
  .ml-section-head{
    gap:8px;
  }
  .ml-task-head-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ml-task-count{
    grid-column:1 / -1;
    text-align:center;
  }
  .ml-task-head-actions button{
    width:100%;
  }
  .ml-allocation-head{
    display:block;
  }
  .ml-allocation-hint{
    max-width:none;
    margin-top:6px;
    text-align:left;
  }
  .ml-time-budget-bar{
    overflow-x:auto;
    overflow-y:hidden;
    min-height:48px;
  }
  .ml-budget-segment{
    min-width:92px;
    flex-shrink:0;
  }
  .ml-current-task-list{
    max-height:62vh;
  }
  .ml-task-item{
    grid-template-columns:1fr;
  }
  .ml-task-left{
    align-items:center;
  }
  .ml-task-actions{
    max-width:none;
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    justify-content:stretch;
  }
  .ml-task-actions .ml-btn{
    width:100%;
    padding:8px 6px;
    font-size:10.8px;
  }
  .ml-task-time-row{
    grid-template-columns:1fr;
  }
}



/* ===== FINAL V20: HISTORY FIRST + JOURNAL + POPUP CHOOSER ===== */
.ml-history-priority-block{background:linear-gradient(135deg,#ffffff,#f8fafc)}
.ml-history-fast-panel{margin-top:0}
.ml-journal-grid{display:grid;grid-template-columns:minmax(310px,.82fr) minmax(0,1.18fr);gap:12px;align-items:start}
.ml-journal-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.ml-journal-fields label{display:block}.ml-journal-fields .ml-full{grid-column:1 / -1}
.ml-journal-fields span{display:block;color:var(--ml-muted);font-size:12px;font-weight:1000;letter-spacing:.45px;text-transform:uppercase;margin-bottom:5px}
.ml-journal-fields input,.ml-journal-fields textarea,.ml-journal-fields select{width:100%;padding:10px 11px;border-radius:14px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;outline:none;font-size:13px;font-weight:850}
.ml-journal-fields textarea{min-height:120px;resize:vertical;line-height:1.5;white-space:pre-wrap}
.ml-journal-fields input:focus,.ml-journal-fields textarea:focus,.ml-journal-fields select:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.14)}
.ml-file-field input[type="file"]{padding:9px;background:#f8fafc}
.ml-journal-audio-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}
.ml-journal-audio-row .ml-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.ml-journal-audio-status{color:#64748b;font-size:12px;line-height:1.35;font-weight:900}
.ml-add-journal{grid-column:1 / -1}.ml-journal-list{display:grid;gap:9px;max-height:560px;overflow:auto;padding-right:4px}
.ml-journal-card{padding:12px;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;box-shadow:0 8px 20px rgba(15,23,42,.045)}
.ml-journal-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.ml-journal-top strong{display:block;color:#0f172a;font-size:14px;line-height:1.25;font-weight:1000}.ml-journal-top span{display:block;margin-top:5px;color:#64748b;font-size:12px;line-height:1.35;font-weight:900}.ml-journal-card p{margin:8px 0 0;color:#475569;font-size:13px;line-height:1.45;font-weight:800;white-space:pre-line;overflow-wrap:anywhere}.ml-journal-media{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.ml-journal-media a{display:inline-flex;border-radius:999px;padding:7px 10px;background:#eef2ff;color:#3730a3;text-decoration:none;font-size:12px;font-weight:1000}.ml-journal-media img{max-width:120px;max-height:90px;border-radius:14px;border:1px solid #e2e8f0;object-fit:cover}.ml-journal-media audio{width:220px;max-width:100%}
.ml-floating-chooser{margin-top:10px;padding:10px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.9)}
.ml-floating-chooser label{display:block;margin-bottom:6px;color:#64748b;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.35px}.ml-floating-chooser-row{display:grid;grid-template-columns:1fr auto;gap:7px}.ml-floating-task-select{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:999px;padding:8px 10px;background:#fff;color:#0f172a;font-size:12px;font-weight:900;outline:none}.ml-floating-switch{border:0;border-radius:999px;padding:8px 10px;background:#0f172a;color:#fff;font-size:12px;font-weight:1000;cursor:pointer;white-space:nowrap}.ml-floating-complete{background:radial-gradient(circle at top left,rgba(34,197,94,.22),transparent 38%),linear-gradient(145deg,#ffffff,#f0fdf4);border-color:rgba(34,197,94,.25)}.ml-floating-complete .ml-floating-badge{background:#dcfce7;color:#166534}.ml-floating-complete .ml-floating-time{color:#16a34a}.ml-floating-complete-note{margin-top:8px;color:#166534;font-size:13px;line-height:1.4;font-weight:900}.ml-floating-empty-next{margin-top:10px;padding:10px;border-radius:16px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.4;font-weight:850;border:1px solid #e2e8f0}
@media(max-width:980px){.ml-journal-grid{grid-template-columns:1fr}}
@media(max-width:720px){.ml-journal-fields{grid-template-columns:1fr}.ml-journal-fields .ml-full,.ml-add-journal{grid-column:auto}.ml-floating-chooser-row{grid-template-columns:1fr}.ml-floating-switch{width:100%}}


/* ===== V19 COMPACT OVERRIDES ===== */
.ml-focus-app .ml-section-head p,.ml-focus-app .ml-block-head p,.ml-allocation-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ml-focus-app .ml-section-head p:hover,.ml-focus-app .ml-block-head p:hover,.ml-allocation-hint:hover{white-space:normal;overflow:visible;background:rgba(255,255,255,.94);border-radius:10px;padding:4px 6px;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.ml-task-item{padding:9px 10px!important;border-radius:18px!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
.ml-task-title-row h3,.ml-task-content h3{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ml-task-desc-text{font-size:12px!important;margin-top:3px!important;-webkit-line-clamp:1!important;line-height:1.3!important}
.ml-task-meta{gap:4px!important;margin-top:5px!important;overflow:hidden;max-height:26px}.ml-task-item.expanded .ml-task-meta{max-height:none}
.ml-pill{font-size:10px!important;padding:4px 7px!important;max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-pill.time:nth-last-child(-n+2){max-width:90px}
.ml-mini-progress{height:6px!important;margin-top:6px!important}.ml-task-time-row{display:none!important}.ml-task-item.expanded .ml-task-time-row,.ml-task-item.running .ml-task-time-row{display:grid!important;margin-top:6px!important}.ml-task-time-row div{padding:6px!important}.ml-task-time-row strong{font-size:11px!important}.ml-task-actions{max-width:190px;gap:5px!important}.ml-task-actions .ml-btn{font-size:10.5px!important;padding:6px 7px!important}.ml-drag-handle{width:22px!important;height:22px!important}.ml-task-check{width:19px!important;height:19px!important}.ml-current-task-list,.ml-task-list{gap:7px!important}
.ml-task-audio-row,.ml-journal-audio-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.ml-task-audio-row audio,.ml-journal-audio-row audio{width:220px;max-width:100%}.ml-task-audio-status{color:#64748b;font-size:12px;line-height:1.35;font-weight:900}.ml-task-audio-row .ml-btn:disabled,.ml-journal-audio-row .ml-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.ml-task-audio-detail{margin-top:8px;padding:8px;border-radius:14px;background:#fff;border:1px solid #e2e8f0}.ml-task-audio-detail audio{width:260px;max-width:100%}
.ml-audio-player{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ml-audio-rate-row{display:flex;gap:5px;flex-wrap:wrap}.ml-audio-rate{border:0;border-radius:999px;padding:5px 7px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:1000;cursor:pointer}
.ml-task-floating-popup{width:300px!important;padding:11px!important;border-radius:18px!important;font-size:12px!important}.ml-floating-badge{font-size:9.5px!important;padding:5px 8px!important}.ml-floating-close{width:auto!important;height:25px!important;padding:0 9px!important;font-size:11px!important;font-weight:1000}.ml-floating-title{font-size:13px!important}.ml-floating-meta{font-size:10.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-floating-time{font-size:26px!important;margin:8px 0 6px!important}.ml-floating-actions{gap:6px!important;margin-top:8px!important}.ml-floating-actions button,.ml-floating-actions a{font-size:10.5px!important;padding:7px 8px!important}.ml-floating-detail p{font-size:11.5px!important}.ml-floating-chooser{padding:8px!important;margin-top:8px!important}.ml-floating-task-select{font-size:11px!important;padding:7px 8px!important}.ml-floating-switch{font-size:11px!important;padding:7px 8px!important}.ml-floating-complete-note,.ml-floating-empty-next{font-size:11px!important;padding:8px!important}
.ml-task-popup-toggle{position:fixed;right:24px;bottom:24px;z-index:2147482999;border:0;border-radius:999px;padding:9px 12px;background:#0f172a;color:#fff;font:1000 12px Arial,Helvetica,sans-serif;box-shadow:0 16px 40px rgba(15,23,42,.25);cursor:pointer}.ml-task-popup-toggle.ml-popup-toggle-hidden{display:none!important}.ml-task-floating-popup:not(.ml-popup-hidden)+.ml-task-popup-toggle{right:24px;bottom:calc(24px + 270px)}
.ml-month-calendar-note{margin:-3px 0 9px;color:#64748b;font-size:11px;font-weight:900}.ml-calendar-month-select{border:0;border-radius:999px;padding:7px 8px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:1000;outline:none}.ml-month-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:42px!important}.ml-month-calendar-day strong{font-size:13px;line-height:1;font-weight:1000}.ml-month-calendar-day small{font-size:10px;line-height:1;color:#9a3412;font-weight:1000}.ml-month-calendar-day.today small,.ml-month-calendar-day.selected small{color:inherit}.ml-budget-lock{border:0;cursor:pointer}.ml-budget-lock.open{background:#e2e8f0;color:#475569}.ml-budget-title{display:flex!important;align-items:center;justify-content:center;gap:3px}.ml-budget-lock:hover{transform:scale(1.06)}
.ml-journal-view-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.ml-journal-day-title{font-weight:1000;color:#0f172a;margin:0 0 8px}.ml-journal-summary-card{margin-top:10px;padding:11px;border-radius:16px;background:#fff7ed;border:1px solid rgba(249,115,22,.22)}.ml-journal-summary-card strong{display:block;color:#9a3412;font-size:13px;font-weight:1000}.ml-journal-summary-card span{display:block;margin-top:5px;color:#64748b;font-size:12px;font-weight:900}.ml-journal-summary-pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.ml-journal-summary-pills em{font-style:normal;padding:5px 8px;border-radius:999px;background:#fff;color:#9a3412;font-size:11px;font-weight:1000;border:1px solid #fed7aa}.ml-journal-media audio{width:210px!important}.ml-journal-card{padding:10px!important}.ml-journal-card p{font-size:12.5px!important;line-height:1.4!important}.ml-journal-top strong{font-size:13px!important}.ml-journal-top span{font-size:11px!important}
@media(max-width:720px){.ml-focus-app .ml-section-head p,.ml-focus-app .ml-block-head p,.ml-allocation-hint{display:none}.ml-task-item{grid-template-columns:auto minmax(0,1fr)!important}.ml-task-actions{grid-column:1/-1;max-width:none;justify-content:flex-start}.ml-task-floating-popup{right:12px!important;bottom:12px!important;width:280px!important}.ml-task-popup-toggle{right:12px;bottom:12px}.ml-task-floating-popup:not(.ml-popup-hidden)+.ml-task-popup-toggle{right:12px;bottom:calc(12px + 245px)}}



/* ===== V20 STABILITY + COMPACT EXPERIENCE PATCH ===== */
.ml-focus-app[data-v20="true" data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-panel,
.ml-focus-app[data-v20="true" data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-panel{scroll-margin-top:16px}
.ml-focus-app .ml-task-item{min-height:unset!important}
.ml-focus-app .ml-task-title-row{min-width:0}
.ml-focus-app .ml-task-content{overflow:hidden}
.ml-focus-app .ml-task-actions{align-items:center}
.ml-focus-app .ml-task-actions .ml-btn{white-space:nowrap}
.ml-focus-app .ml-current-task-list .ml-task-item:not(.expanded):not(.running) .ml-subtask-list,
.ml-focus-app .ml-task-list .ml-task-item:not(.expanded):not(.running) .ml-subtask-list{display:none!important}
.ml-focus-app .ml-current-task-list .ml-task-item:not(.expanded):not(.running) .ml-task-audio-detail,
.ml-focus-app .ml-task-list .ml-task-item:not(.expanded):not(.running) .ml-task-audio-detail{display:none!important}
.ml-focus-app .ml-budget-segment{min-width:42px}.ml-focus-app .ml-budget-title{min-width:0}.ml-focus-app .ml-budget-title span:first-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-focus-app .ml-budget-lock{flex:0 0 auto}
.ml-focus-app .ml-month-calendar-day{overflow:hidden}.ml-focus-app .ml-month-calendar-day small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-focus-app .ml-journal-card p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.ml-focus-app .ml-journal-card:hover p{display:block;overflow:visible}
.ml-focus-app .ml-journal-summary-card{position:sticky;top:8px;z-index:2}
.ml-task-floating-popup{max-height:min(78vh,520px);overflow:auto;scrollbar-width:thin}.ml-floating-title,.ml-floating-meta{min-width:0}.ml-floating-detail{max-height:230px;overflow:auto;scrollbar-width:thin}.ml-task-popup-toggle{user-select:none}
@media(max-width:720px){.ml-task-floating-popup{right:10px!important;bottom:10px!important;width:286px!important}.ml-task-popup-toggle{right:10px!important;bottom:10px!important}.ml-task-item{grid-template-columns:auto minmax(0,1fr)!important}.ml-task-actions{grid-column:1 / -1;justify-content:flex-start;max-width:100%!important}.ml-task-actions .ml-btn{font-size:10px!important;padding:6px 7px!important}.ml-budget-title{font-size:10.5px!important}.ml-budget-meta{font-size:9.5px!important}.ml-month-calendar-popover{right:auto;left:50%;transform:translateX(-50%);width:330px}}



/* ===== V21 OLD UI OPTIMIZED PATCH: GIỮ GIAO DIỆN CŨ, CHỈ TỐI ƯU ===== */
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-sub-brand::after{content:" • V21 tối ưu";color:#f97316}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-panel .ml-section-head p{max-width:720px}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions{max-width:220px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;flex-wrap:wrap!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions .ml-btn{min-width:31px!important;height:31px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 8px!important;border-radius:999px!important;font-size:12px!important;line-height:1!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions .ml-btn[data-action="done-task"]{display:none!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions .ml-btn[data-action="toggle-detail"]{display:none!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-content{cursor:pointer}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-item:not(.expanded) .ml-task-detail-zone{display:none!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-item.expanded .ml-task-detail-zone{display:block!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-desc-text{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-item.expanded .ml-task-desc-text{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-pill.favorite{max-width:36px!important;color:transparent!important;position:relative}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-pill.favorite::before{content:"⭐";color:#92400e;position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-balance-current::before{content:"⚖ ";}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-reset-fav-current,.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-reset-fav-all{font-size:0!important}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-reset-fav-current::before{content:"↺ Phiên";font-size:11px}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-reset-fav-all::before{content:"↺ Tất cả";font-size:11px}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-top-add-task{font-size:0!important}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-top-add-task::before{content:"+ Việc";font-size:13px}
.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-top-task-desc::placeholder{font-size:0}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-top-task-desc::before{content:"Ghi chú"}
.ml-audio-rate-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:6px}.ml-audio-rate{border:0;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10.5px;font-weight:1000;padding:5px 7px;cursor:pointer}.ml-audio-rate.active{background:#0f172a;color:#fff}.ml-audio-rate-row::before{content:"🎧";font-size:12px}
.ml-task-floating-popup .ml-floating-actions{grid-template-columns:repeat(5,1fr)!important}.ml-task-floating-popup .ml-floating-actions button,.ml-task-floating-popup .ml-floating-actions a{display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;border:0;cursor:pointer}.ml-floating-mini-tools{display:flex;gap:6px;margin-top:8px}.ml-floating-mini-tools button{border:0;border-radius:999px;background:#f1f5f9;color:#475569;font-weight:1000;padding:7px 9px;cursor:pointer;font-size:11px}.ml-floating-quick-form{display:none;margin-top:10px;padding:10px;border-radius:16px;background:#fff;border:1px solid #e2e8f0}.ml-floating-quick-form.open{display:grid;gap:7px}.ml-floating-quick-form input,.ml-floating-quick-form textarea,.ml-floating-quick-form select{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:8px;font-size:12px;font-weight:850;outline:none}.ml-floating-quick-form textarea{min-height:54px;max-height:88px;resize:vertical}.ml-floating-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ml-floating-quick-actions button{border:0;border-radius:999px;padding:8px 9px;font-size:11px;font-weight:1000;cursor:pointer}.ml-floating-quick-actions .run{background:#eef2ff;color:#3730a3}.ml-floating-quick-actions .save{background:#dcfce7;color:#166534}.ml-floating-rec-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ml-floating-rec-row button{border:0;border-radius:999px;padding:7px 8px;background:#fff7ed;color:#9a3412;font-size:11px;font-weight:1000;cursor:pointer}.ml-floating-rec-row span{color:#64748b;font-size:11px;font-weight:900}.ml-floating-quick-form audio{width:100%;height:34px}
.ml-month-calendar-popover{z-index:2147482500!important}.ml-month-calendar-head{gap:8px}.ml-calendar-close{border:0!important;border-radius:999px!important;background:#fee2e2!important;color:#b91c1c!important;font-weight:1000!important;padding:7px 9px!important;cursor:pointer!important}.ml-calendar-jump-today{background:#0f172a!important;color:#fff!important}.ml-date-card{cursor:pointer!important}
.ml-v21-tabs{display:flex;gap:8px;margin:12px 0 0;flex-wrap:wrap}.ml-v21-tabs button{border:0;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:1000;cursor:pointer;background:#f1f5f9;color:#475569}.ml-v21-tabs button.active{background:#0f172a;color:#fff}.ml-v21-tab-hidden{display:none!important}
@media(max-width:720px){.ml-task-floating-popup .ml-floating-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ml-floating-quick-actions{grid-template-columns:1fr!important}.ml-month-calendar-popover{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;transform:none!important;width:auto!important;max-width:none!important;border-radius:24px!important}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}.ml-focus-app[data-v21-old-ui-optimized="true" data-v21-stable="true"] .ml-task-actions .ml-btn{width:100%!important}}

/* ===== V21 FINAL STABLE OLD UI PATCH: giữ giao diện cũ, chỉ làm gọn/mượt hơn ===== */
.ml-focus-app[data-v21-stable="true"] .ml-top-task-form{
  position:relative;
}
.ml-focus-app[data-v21-stable="true"] .ml-top-task-form:not(.ml-form-expanded) .ml-optional-task-field{
  display:none!important;
}
.ml-focus-app[data-v21-stable="true"] .ml-form-detail-toggle{
  grid-column:1 / -1;
  border:0;
  border-radius:999px;
  padding:8px 11px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  line-height:1;
  font-weight:1000;
  cursor:pointer;
}
.ml-focus-app[data-v21-stable="true"] .ml-section-head p,
.ml-focus-app[data-v21-stable="true"] .ml-block-head p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ml-focus-app[data-v21-stable="true"] .ml-task-actions .finish{
  display:none!important;
}
.ml-focus-app[data-v21-stable="true"] .ml-task-desc-text{
  -webkit-line-clamp:1;
}
.ml-focus-app[data-v21-stable="true"] .ml-task-item.expanded .ml-task-desc-text{
  -webkit-line-clamp:unset;
}
.ml-focus-app[data-v21-stable="true"] .ml-audio-rate-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
}
.ml-focus-app[data-v21-stable="true"] .ml-audio-rate,
.ml-task-floating-popup .ml-audio-rate{
  border:0;
  border-radius:999px;
  padding:6px 8px;
  background:#f1f5f9;
  color:#475569;
  font-size:11px;
  font-weight:1000;
  cursor:pointer;
}
.ml-focus-app[data-v21-stable="true"] .ml-audio-rate.active,
.ml-task-floating-popup .ml-audio-rate.active{
  background:#fff7ed;
  color:#9a3412;
}
.ml-focus-app[data-v21-stable="true"] .ml-glass-btn{
  min-width:38px;
}
@media (max-width: 760px){
  .ml-focus-app[data-v21-stable="true"]{
    margin:10px auto;
    padding:12px;
    border-radius:24px;
  }
  .ml-focus-app[data-v21-stable="true"] .ml-month-calendar-popover{
    position:fixed;
    left:10px;
    right:10px;
    bottom:12px;
    top:auto;
    width:auto;
    max-width:none;
    z-index:999998;
    border-radius:24px;
  }
  .ml-focus-app[data-v21-stable="true"] .ml-task-actions .ml-btn{
    min-width:34px;
  }
  .ml-focus-app[data-v21-stable="true"] .ml-task-row{
    grid-template-columns:1fr;
  }
  .ml-focus-app[data-v21-stable="true"] .ml-session-grid,
  .ml-focus-app[data-v21-stable="true"] .ml-life-grid,
  .ml-focus-app[data-v21-stable="true"] .ml-calendar-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* ===== V22 UX PATCH: lịch ổn định, tìm kiếm, nhật ký tab, audio lớn, popup có journal ===== */
.ml-focus-app[data-v22-ux="true"] .ml-global-search-bar{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 126px auto;
  gap:8px;
  align-items:center;
  padding:10px;
  margin:0 0 14px;
  border:1px solid var(--ml-line);
  border-radius:20px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.ml-global-search-icon{width:34px;height:34px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fff7ed;color:#9a3412;font-weight:1000}
.ml-global-search-input,.ml-global-search-type{
  width:100%;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  color:#0f172a;
  outline:none;
  font-size:13px;
  font-weight:850;
}
.ml-global-search-type{padding-right:8px}
.ml-global-search-clear{border:0;width:34px;height:34px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:20px;line-height:1;font-weight:1000;cursor:pointer}
.ml-month-calendar-note{margin:0 0 9px;color:#64748b;font-size:12px;line-height:1.35;font-weight:850}
.ml-calendar-nav select{border:0;border-radius:999px;padding:7px 8px;background:#f8fafc;color:#0f172a;font-size:12px;font-weight:1000;outline:1px solid #e2e8f0}
.ml-focus-app[data-v22-ux="true"] .ml-journal-view-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px}
.ml-focus-app[data-v22-ux="true"] .ml-journal-view-tabs .ml-tab{width:100%;padding:9px 8px}
.ml-focus-app[data-v22-ux="true"] .ml-life-card{cursor:pointer;transition:.18s ease}
.ml-focus-app[data-v22-ux="true"] .ml-life-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.08)}
.ml-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:12px 0}
.ml-stats-grid div{padding:12px;border-radius:17px;background:#f8fafc;border:1px solid #e2e8f0}
.ml-stats-grid span{display:block;color:#64748b;font-size:11px;font-weight:1000;text-transform:uppercase}
.ml-stats-grid strong{display:block;margin-top:7px;color:#ea580c;font-size:20px;font-weight:1000}
.ml-stats-session-list{display:grid;gap:8px;max-height:260px;overflow:auto}
.ml-stats-session-list button{display:flex;justify-content:space-between;gap:10px;text-align:left;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:10px 12px;cursor:pointer}
.ml-stats-session-list b{font-size:13px;color:#0f172a}.ml-stats-session-list span{font-size:12px;color:#64748b;font-weight:900}
.ml-task-audio-row audio,.ml-journal-audio-row audio,.ml-audio-player audio,.ml-task-audio-detail audio,.ml-popup-audio-preview,.ml-popup-journal-audio-preview{
  width:100%;
  min-height:42px;
}
.ml-task-audio-row,.ml-journal-audio-row,.ml-audio-player,.ml-task-audio-detail{
  border-radius:16px;
}
.ml-audio-note,.ml-popup-listen-note{
  width:100%;
  min-height:72px;
  margin-top:8px;
  padding:10px 11px;
  border-radius:14px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  font-size:13px;
  line-height:1.45;
  font-weight:800;
  resize:vertical;
}
.ml-task-floating-popup .ml-floating-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}
.ml-task-floating-popup .ml-floating-tab{border:0;border-radius:999px;padding:8px 10px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:1000;cursor:pointer}
.ml-task-floating-popup .ml-floating-tab.active{background:#0f172a;color:#fff}
.ml-task-floating-popup .ml-popup-tab-panel{display:none}
.ml-task-floating-popup .ml-popup-tab-panel.active{display:grid;gap:7px}
.ml-task-floating-popup .ml-floating-quick-form textarea,.ml-task-floating-popup .ml-floating-quick-form input,.ml-task-floating-popup .ml-floating-quick-form select{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:9px 10px;
  font-size:13px;
  font-weight:850;
  outline:none;
  background:#fff;
  color:#0f172a;
}
.ml-task-floating-popup .ml-floating-quick-form textarea{min-height:64px;resize:vertical}
.ml-floating-budget-mini{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.ml-floating-budget-mini span{padding:8px;border-radius:14px;background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.9);font-size:11px;color:#64748b;font-weight:1000}
.ml-floating-budget-mini b{display:block;margin-top:4px;color:#0f172a;font-size:12px}
.ml-popup-time-editor{margin-top:9px;padding:9px;border-radius:15px;background:#fff;border:1px solid #e2e8f0}
.ml-popup-time-editor label{display:flex;justify-content:space-between;color:#64748b;font-size:11px;font-weight:1000;text-transform:uppercase}
.ml-popup-time-editor input{width:100%;margin-top:7px;accent-color:#f97316}
.ml-task-floating-popup{max-height:calc(100vh - 38px);overflow:auto}
@media(max-width:720px){
  .ml-focus-app[data-v22-ux="true"] .ml-global-search-bar{grid-template-columns:auto 1fr;gap:8px}
  .ml-global-search-type,.ml-global-search-clear{grid-column:auto}
  .ml-stats-grid{grid-template-columns:1fr 1fr}
  .ml-focus-app[data-v22-ux="true"] .ml-journal-view-tabs{grid-template-columns:1fr 1fr}
}

/* ===== V24 FINAL PATCH: audio first, stable calendar, collapsed search, 5 journal tabs, session manager ===== */
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar{
  width:max-content;
  max-width:100%;
  grid-template-columns:38px 0 0 0;
  overflow:hidden;
  justify-content:start;
  transition:width .22s ease, grid-template-columns .22s ease, padding .22s ease;
}
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar .ml-global-search-icon{
  border:0;
  cursor:pointer;
  flex:0 0 auto;
  padding:0;
}
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-collapsed .ml-global-search-input,
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-collapsed .ml-global-search-type,
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-collapsed .ml-global-search-clear{
  opacity:0;
  pointer-events:none;
  width:0;
  padding-left:0;
  padding-right:0;
  border-width:0;
}
.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-open{
  width:100%;
  grid-template-columns:38px minmax(160px,1fr) 126px 36px;
}
.ml-focus-app[data-v24-final="true"] .ml-audio-first-box{
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(249,115,22,.28);
  background:linear-gradient(135deg,#fff7ed,#fff);
}
.ml-audio-first-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.ml-audio-first-head strong{color:#9a3412;font-size:14px;font-weight:1000;line-height:1.2}
.ml-audio-first-head span{max-width:270px;text-align:right;color:#92400e!important;font-size:11px!important;line-height:1.3!important;text-transform:none!important;letter-spacing:0!important}
.ml-task-audio-row,.ml-journal-audio-row{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;min-height:42px}
.ml-task-audio-row audio,.ml-journal-audio-row audio{display:block;width:100%;height:40px;margin-top:6px;flex-basis:100%}
.ml-task-audio-status,.ml-journal-audio-status{font-size:12px;color:#64748b;font-weight:1000}
.ml-focus-app[data-v24-final="true"] .ml-month-calendar-popover{z-index:99998;min-width:380px;max-height:min(78vh,620px);overflow:auto}
.ml-focus-app[data-v24-final="true"] .ml-month-calendar-head{align-items:flex-start}
.ml-focus-app[data-v24-final="true"] .ml-calendar-nav{display:grid;grid-template-columns:repeat(4,auto);gap:7px;justify-content:end}
.ml-focus-app[data-v24-final="true"] .ml-month-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:42px}
.ml-focus-app[data-v24-final="true"] .ml-month-calendar-day strong{font-size:13px;line-height:1}
.ml-focus-app[data-v24-final="true"] .ml-month-calendar-day small{font-size:10px;color:#64748b;font-weight:900;line-height:1}
.ml-focus-app[data-v24-final="true"] .ml-journal-view-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px;margin-bottom:10px}
.ml-focus-app[data-v24-final="true"] .ml-journal-view-tabs .ml-tab{width:100%;padding:9px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-session-manager-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:12px;align-items:start}
.ml-session-manager-list{display:grid;gap:8px;max-height:430px;overflow:auto;padding-right:4px}
.ml-session-manager-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:11px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}
.ml-session-manager-item strong{display:block;color:#0f172a;font-size:14px;line-height:1.25;font-weight:1000}
.ml-session-manager-item span{display:block;margin-top:5px;color:#9a3412;font-size:12px;font-weight:1000}
.ml-session-manager-item p{margin:6px 0 0;color:#64748b;font-size:12.5px;line-height:1.4;font-weight:800;white-space:pre-line}
.ml-session-editor{display:grid;grid-template-columns:1fr 110px;gap:8px;padding:11px;border-radius:18px;background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid rgba(249,115,22,.22)}
.ml-session-editor label{display:block}.ml-session-editor .ml-full{grid-column:1/-1}.ml-session-editor span{display:block;color:#64748b;font-size:11px;font-weight:1000;text-transform:uppercase;margin-bottom:5px}.ml-session-editor input,.ml-session-editor textarea{width:100%;border:1px solid #cbd5e1;border-radius:13px;background:#fff;color:#0f172a;font-size:13px;font-weight:850;outline:none;padding:9px 10px}.ml-session-editor textarea{min-height:72px;resize:vertical;line-height:1.45}.ml-session-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:920px){.ml-session-manager-grid{grid-template-columns:1fr}.ml-focus-app[data-v24-final="true"] .ml-journal-view-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-open{grid-template-columns:38px minmax(0,1fr);}.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-open .ml-global-search-type,.ml-focus-app[data-v24-final="true"] .ml-global-search-bar.ml-search-open .ml-global-search-clear{grid-column:auto}.ml-audio-first-head{display:block}.ml-audio-first-head span{text-align:left;display:block;margin-top:5px;max-width:none}}
@media(max-width:720px){.ml-focus-app[data-v24-final="true"] .ml-month-calendar-popover{min-width:0}.ml-focus-app[data-v24-final="true"] .ml-calendar-nav{grid-template-columns:repeat(3,auto)}.ml-session-editor{grid-template-columns:1fr}.ml-session-editor .ml-full{grid-column:auto}}

.ml-focus-app[data-v25-final="true"]{--v25-bg:#fff;--v25-soft:#f8fafc;--v25-line:#e2e8f0;--v25-dark:#0f172a;--v25-muted:#64748b;--v25-orange:#f97316;--v25-orange-dark:#ea580c;--v25-indigo:#4f46e5;}
.ml-v25-workspace{margin-top:14px;border-radius:28px;background:rgba(255,255,255,.92);border:1px solid rgba(226,232,240,.95);box-shadow:0 14px 34px rgba(15,23,42,.065);overflow:hidden;}
.ml-v25-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:linear-gradient(135deg,#fff7ed,#fff);border-bottom:1px solid var(--v25-line)}
.ml-v25-title{display:flex;align-items:center;gap:10px;min-width:0}.ml-v25-title b{display:block;font-size:19px;line-height:1.1;font-weight:1000;color:var(--v25-dark);letter-spacing:-.35px}.ml-v25-title span{display:block;margin-top:3px;color:var(--v25-muted);font-size:12px;line-height:1.25;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-v25-mark{width:38px;height:38px;border-radius:15px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:1000;box-shadow:0 10px 22px rgba(15,23,42,.16)}
.ml-v25-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.ml-v25-btn{border:0;border-radius:999px;padding:9px 11px;background:#f1f5f9;color:#475569;font-size:12px;line-height:1;font-weight:1000;cursor:pointer;white-space:nowrap}.ml-v25-btn:hover{transform:translateY(-1px)}.ml-v25-btn.primary{background:linear-gradient(90deg,#fb923c,#ea580c);color:#fff;box-shadow:0 10px 18px rgba(249,115,22,.2)}.ml-v25-btn.dark{background:#0f172a;color:#fff}.ml-v25-btn.green{background:#dcfce7;color:#166534}.ml-v25-btn.warn{background:#fef3c7;color:#92400e}.ml-v25-btn.danger{background:#fee2e2;color:#991b1b}
.ml-v25-body{display:grid;grid-template-columns:minmax(280px,34%) minmax(0,1fr);gap:0;min-height:460px}.ml-v25-body.sidebar-closed{grid-template-columns:0 minmax(0,1fr)}.ml-v25-sidebar{border-right:1px solid var(--v25-line);background:#fbfdff;min-width:0;overflow:hidden}.ml-v25-body.sidebar-closed .ml-v25-sidebar{border-right:0}.ml-v25-side-inner{padding:12px;display:grid;gap:10px}.ml-v25-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ml-v25-side-head strong{font-size:14px;font-weight:1000;color:var(--v25-dark)}.ml-v25-search{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:center}.ml-v25-search button{width:36px;height:36px;border:0;border-radius:999px;background:#fff7ed;color:#9a3412;font-weight:1000}.ml-v25-search input{width:100%;border:1px solid #cbd5e1;border-radius:999px;padding:10px 12px;outline:none;font-size:13px;font-weight:850;background:#fff;color:var(--v25-dark)}.ml-v25-search input:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.14)}
.ml-v25-tree{display:grid;gap:7px;max-height:560px;overflow:auto;padding-right:2px}.ml-v25-node{border:1px solid var(--v25-line);background:#fff;border-radius:16px;overflow:hidden}.ml-v25-node.active{border-color:#fb923c;box-shadow:0 0 0 3px rgba(249,115,22,.10)}.ml-v25-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px 9px}.ml-v25-row.task-row{grid-template-columns:auto auto minmax(0,1fr) auto;background:#fff}.ml-v25-row[draggable="true"]{cursor:grab}.ml-v25-row.dragging{opacity:.45}.ml-v25-caret,.ml-v25-drag{width:24px;height:24px;border:0;border-radius:8px;background:#f1f5f9;color:#64748b;font-weight:1000;cursor:pointer}.ml-v25-drag{cursor:grab}.ml-v25-icon{width:26px;height:26px;border-radius:10px;background:#fff7ed;color:#9a3412;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:1000}.ml-v25-name{min-width:0}.ml-v25-edit{display:block;min-width:0;outline:none;color:var(--v25-dark);font-size:13px;font-weight:1000;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px;padding:2px 3px}.ml-v25-edit:focus{background:#fff7ed;white-space:normal;overflow:visible;box-shadow:0 0 0 3px rgba(249,115,22,.12)}.ml-v25-meta{display:block;margin-top:3px;color:var(--v25-muted);font-size:11px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-v25-mini{display:flex;align-items:center;gap:5px}.ml-v25-mini button{border:0;border-radius:999px;background:#f8fafc;color:#475569;font-size:11px;font-weight:1000;padding:6px 7px;cursor:pointer}.ml-v25-mini .add{background:#dcfce7;color:#166534}.ml-v25-mini .send{background:#eef2ff;color:#3730a3}.ml-v25-children{display:grid;gap:6px;padding:0 8px 8px 20px}.ml-v25-node.collapsed>.ml-v25-children{display:none}.ml-v25-task{border-radius:14px;border:1px solid #e2e8f0;background:#fff}.ml-v25-task.done{opacity:.62}.ml-v25-task.done .ml-v25-edit{text-decoration:line-through;color:#94a3b8}.ml-v25-check{width:17px;height:17px;accent-color:#f97316}.ml-v25-depth-1{margin-left:16px}.ml-v25-depth-2{margin-left:32px}.ml-v25-depth-3{margin-left:48px}.ml-v25-depth-4{margin-left:64px}.ml-v25-depth-5{margin-left:80px}
.ml-v25-main{min-width:0;padding:13px;display:grid;grid-template-rows:auto auto 1fr;gap:11px;background:linear-gradient(135deg,#ffffff,#f8fafc)}.ml-v25-quick{border:1px solid rgba(249,115,22,.26);background:linear-gradient(135deg,#fff7ed,#fff);border-radius:20px;padding:11px;display:grid;gap:8px}.ml-v25-quick-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:start}.ml-v25-quick-input{min-height:42px;max-height:120px;overflow:auto;border:1px solid #cbd5e1;border-radius:16px;background:#fff;padding:11px 12px;outline:none;color:#0f172a;font-size:14px;font-weight:900;line-height:1.4}.ml-v25-quick-input:empty:before{content:attr(data-placeholder);color:#94a3b8}.ml-v25-quick-input:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.14)}.ml-v25-quick-hint{display:flex;gap:6px;flex-wrap:wrap;color:#92400e;font-size:11.5px;font-weight:850}.ml-v25-quick-hint span{padding:4px 7px;border-radius:999px;background:#ffedd5}.ml-v25-fieldline{display:grid;grid-template-columns:1fr 120px 110px;gap:8px}.ml-v25-fieldline select,.ml-v25-fieldline input{width:100%;border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:8px 10px;font-size:12px;font-weight:900;color:#0f172a;outline:none}.ml-v25-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:11px}.ml-v25-panel{border:1px solid var(--v25-line);background:#fff;border-radius:20px;padding:11px;box-shadow:0 10px 24px rgba(15,23,42,.045);min-width:0}.ml-v25-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:9px}.ml-v25-panel-head strong{display:block;font-size:15px;font-weight:1000;color:var(--v25-dark);line-height:1.2}.ml-v25-panel-head span{display:block;margin-top:4px;color:var(--v25-muted);font-size:12px;font-weight:850}.ml-v25-drop{min-height:150px;border:1.5px dashed #cbd5e1;border-radius:18px;background:#f8fafc;padding:10px;display:grid;align-content:start;gap:8px;transition:.16s ease}.ml-v25-drop.is-over{background:#fff7ed;border-color:#fb923c;box-shadow:0 0 0 4px rgba(249,115,22,.12)}.ml-v25-session-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;border:1px solid #e2e8f0;border-radius:15px;background:#fff;padding:8px}.ml-v25-session-task b{display:block;font-size:13px;line-height:1.25;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-v25-session-task small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-v25-session-task .run{border:0;border-radius:999px;background:#fff7ed;color:#9a3412;padding:7px 8px;font-size:11px;font-weight:1000}.ml-v25-budget{height:42px;border-radius:14px;background:#f1f5f9;overflow:hidden;display:flex;border:1px solid #e2e8f0;margin-top:8px}.ml-v25-budget div{display:flex;align-items:center;justify-content:center;min-width:32px;border-right:1px solid rgba(226,232,240,.9);font-size:10px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-v25-budget .locked{background:#ffedd5;color:#9a3412}.ml-v25-budget .auto{background:#eef2ff;color:#3730a3}.ml-v25-empty{padding:14px;text-align:center;color:#64748b;font-size:13px;font-weight:850}.ml-v25-settings{display:none;border-top:1px solid var(--v25-line);padding:12px;background:#fff}.ml-v25-settings.open{display:block}.ml-v25-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ml-v25-setting{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e2e8f0;border-radius:15px;padding:9px;background:#f8fafc;color:#475569;font-size:12px;font-weight:900}.ml-v25-setting input{accent-color:#f97316}.ml-v25-audio{display:grid;gap:8px}.ml-v25-audio-status{color:#64748b;font-size:12px;font-weight:900}.ml-v25-audio audio{width:100%;height:42px}.ml-v25-audio textarea{width:100%;min-height:72px;resize:vertical;border:1px solid #cbd5e1;border-radius:14px;padding:9px 10px;font-size:13px;font-weight:850;outline:none}.ml-v25-audio textarea:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.14)}.ml-v25-toast{position:fixed;right:22px;bottom:22px;z-index:999999;padding:11px 14px;border-radius:16px;background:#0f172a;color:#fff;font-size:13px;font-weight:1000;box-shadow:0 18px 42px rgba(15,23,42,.24);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s ease}.ml-v25-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:980px){.ml-v25-body,.ml-v25-body.sidebar-closed{grid-template-columns:1fr}.ml-v25-body.sidebar-closed .ml-v25-sidebar{display:none}.ml-v25-sidebar{border-right:0;border-bottom:1px solid var(--v25-line)}.ml-v25-panels{grid-template-columns:1fr}.ml-v25-settings-grid{grid-template-columns:1fr 1fr}.ml-v25-fieldline{grid-template-columns:1fr}.ml-v25-quick-row{grid-template-columns:1fr}}
@media(max-width:620px){.ml-v25-top{align-items:flex-start;flex-direction:column}.ml-v25-actions{width:100%;justify-content:flex-start}.ml-v25-settings-grid{grid-template-columns:1fr}.ml-v25-row{grid-template-columns:auto minmax(0,1fr) auto}.ml-v25-drag{display:none}.ml-v25-icon{display:none}}

/* ===== CALENDAR FINAL UX PATCH ===== */
.ml-month-calendar-popover{
  z-index:999999 !important;
  width:420px !important;
  max-width:calc(100vw - 24px) !important;
  padding:14px !important;
  border-radius:24px !important;
  overflow:visible !important;
}
.ml-month-calendar-head{
  align-items:flex-start !important;
  gap:10px !important;
}
.ml-month-calendar-head > div{
  min-width:0;
}
.ml-month-calendar-head strong{
  display:block;
}
.ml-calendar-selected-label{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.ml-calendar-toolbar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin:10px 0;
}
.ml-calendar-toolbar button,
.ml-calendar-toolbar select,
.ml-calendar-close{
  min-height:34px;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
  padding:7px 10px;
  outline:none;
}
.ml-calendar-toolbar select{
  background:#fff;
  border:1px solid #e2e8f0;
}
.ml-calendar-toolbar button:hover,
.ml-calendar-close:hover{
  background:#fff7ed;
  color:#9a3412;
}
.ml-calendar-jump-today{
  grid-column:1 / -1;
  background:#0f172a !important;
  color:#fff !important;
}
.ml-calendar-close{
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  background:#fee2e2 !important;
  color:#b91c1c !important;
  font-size:18px !important;
  line-height:1 !important;
}
.ml-month-calendar-note{
  margin:8px 0 10px;
  padding:9px 10px;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-size:12px;
  line-height:1.35;
  font-weight:900;
}
.ml-month-calendar-weekdays{
  margin-bottom:6px;
}
.ml-month-calendar-day{
  position:relative;
  min-height:48px !important;
  display:flex !important;
  flex-direction:column;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  padding:7px !important;
  text-align:left !important;
}
.ml-month-calendar-day .ml-cal-solar{
  color:#0f172a;
  font-size:13px;
  line-height:1;
  font-weight:1000;
}
.ml-month-calendar-day .ml-cal-lunar{
  margin-top:5px;
  color:#64748b;
  font-size:10px;
  line-height:1;
  font-weight:900;
}
.ml-month-calendar-day.other-month{
  opacity:.45;
  background:#f8fafc;
}
.ml-month-calendar-day.today{
  background:#ffedd5 !important;
  border-color:#fb923c !important;
}
.ml-month-calendar-day.selected{
  background:#eef2ff !important;
  border-color:#4f46e5 !important;
  box-shadow:0 0 0 2px rgba(79,70,229,.16) inset;
}
.ml-month-calendar-day.selected .ml-cal-solar{
  color:#3730a3;
}
.ml-cal-dot{
  position:absolute;
  right:5px;
  bottom:5px;
  min-width:17px;
  height:17px;
  padding:0 5px;
  border-radius:999px;
  background:#f97316;
  color:#fff;
  font-size:10px;
  line-height:17px;
  text-align:center;
  font-weight:1000;
}
@media(max-width:720px){
  .ml-month-calendar-popover{
    position:fixed !important;
    left:10px !important;
    right:10px !important;
    top:84px !important;
    width:auto !important;
    max-width:none !important;
  }
  .ml-calendar-toolbar{
    grid-template-columns:1fr 1fr;
  }
  .ml-month-calendar-day{
    min-height:44px !important;
    padding:6px !important;
  }
}


/* ===== CALENDAR NO-JUMP PATCH ===== */
.ml-month-calendar-popover{
  position:fixed !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  transform:translate(-50%,-50%) !important;
  width:min(720px, calc(100vw - 24px)) !important;
  max-height:calc(100vh - 24px) !important;
  overflow:auto !important;
  z-index:2147483000 !important;
  overscroll-behavior:contain !important;
}
.ml-month-calendar-popover.ml-calendar-hidden{
  display:none !important;
}
.ml-month-calendar-popover:not(.ml-calendar-hidden)::before{
  content:"";
  position:fixed;
  inset:-100vh;
  z-index:-1;
  background:rgba(15,23,42,.28);
  backdrop-filter:blur(3px);
}
.ml-month-calendar-grid{
  grid-auto-rows:minmax(54px, auto);
}
.ml-month-calendar-day{
  scroll-margin:80px;
}
body.ml-calendar-open{
  overflow:hidden;
}
@media(max-width:720px){
  .ml-month-calendar-popover{
    left:8px !important;
    right:8px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:auto !important;
    max-height:calc(100vh - 16px) !important;
  }
}


/* ===== CALENDAR ARROW FIX PATCH ===== */
.ml-month-calendar-popover .ml-calendar-toolbar button:hover,
.ml-month-calendar-popover .ml-calendar-close:hover,
.ml-month-calendar-popover .ml-month-calendar-day:hover{
  transform:none !important;
}
.ml-month-calendar-popover .ml-calendar-toolbar button,
.ml-month-calendar-popover .ml-calendar-close,
.ml-month-calendar-popover .ml-month-calendar-day{
  touch-action:manipulation;
}


/* ===== HIDE TOP SEARCH BAR PATCH ===== */
.ml-global-search-bar{
  display:none !important;
}


/* ===== ROLLBACK + SAFE TASK POLISH ===== */
/* Không thay logic cũ. Chỉ làm gọn khu task/project/audio để không mất tính năng. */

/* Giữ khu việc cần làm cũ, chỉ làm gọn */
.ml-task-panel{
  display:block !important;
  overflow:hidden !important;
}

.ml-task-row{
  grid-template-columns:minmax(300px,.52fr) minmax(0,1.48fr) !important;
  gap:12px !important;
  align-items:start !important;
}

.ml-top-task-form{
  position:sticky !important;
  top:10px !important;
  max-height:calc(100vh - 120px) !important;
  overflow:auto !important;
  padding:10px !important;
  border-radius:18px !important;
}

.ml-top-task-form textarea{
  min-height:52px !important;
  max-height:94px !important;
}

.ml-current-task-wrap{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) !important;
  gap:10px !important;
}

.ml-current-task-list{
  max-height:clamp(380px, 54vh, 680px) !important;
  overflow:auto !important;
  padding-right:6px !important;
  overscroll-behavior:contain !important;
}

.ml-current-task-list::-webkit-scrollbar,
.ml-task-list::-webkit-scrollbar,
.ml-history-list::-webkit-scrollbar{
  width:7px;
}

.ml-current-task-list::-webkit-scrollbar-thumb,
.ml-task-list::-webkit-scrollbar-thumb,
.ml-history-list::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

.ml-task-item{
  padding:9px 10px !important;
  border-radius:17px !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  gap:8px !important;
}

.ml-task-title-row h3,
.ml-task-content h3{
  font-size:14px !important;
  line-height:1.22 !important;
}

.ml-task-desc-text{
  display:none !important;
}

.ml-task-item.expanded .ml-task-desc-text{
  display:block !important;
}

.ml-task-meta{
  margin-top:5px !important;
  gap:5px !important;
}

.ml-pill{
  padding:4px 7px !important;
  font-size:10px !important;
}

.ml-task-actions .ml-btn,
.ml-task-actions button{
  padding:6px 8px !important;
  font-size:11px !important;
}

/* Phân bổ thời gian gọn hơn */
.ml-allocation-panel{
  padding:10px !important;
  border-radius:18px !important;
}

.ml-time-budget-bar{
  min-height:44px !important;
  border-radius:15px !important;
}

.ml-budget-segment{
  padding:6px !important;
}

.ml-budget-title{
  font-size:11px !important;
}

.ml-budget-meta{
  font-size:10px !important;
}

/* Kho dự án cũ: giữ nguyên tính năng, chỉ giới hạn chiều cao và scroll riêng */
.ml-v25-workspace,
.ml-workspace,
.ml-project-workspace,
.ml-project-tree,
.ml-project-panel,
.ml-project-list,
.ml-project-task-list{
  min-width:0 !important;
}

.ml-v25-workspace{
  overflow:hidden !important;
}

.ml-v25-workspace .ml-panel,
.ml-project-workspace .ml-panel{
  overflow:hidden !important;
}

.ml-v25-workspace [class*="list"],
.ml-v25-workspace [class*="tree"],
.ml-v25-workspace [class*="drop"],
.ml-project-workspace [class*="list"],
.ml-project-workspace [class*="tree"],
.ml-project-workspace [class*="drop"]{
  max-height:clamp(260px, 45vh, 520px);
  overflow:auto;
  overscroll-behavior:contain;
}

/* Audio & ghi chú nhanh: không chiếm quá nhiều */
.ml-audio-first-box,
.ml-journal-audio-row,
[class*="audio"]{
  min-width:0;
}

.ml-task-audio-row,
.ml-journal-audio-row{
  gap:6px !important;
  flex-wrap:wrap !important;
}

.ml-task-audio-preview,
.ml-journal-audio-preview{
  max-height:38px !important;
}

/* Hạn chế trang bị dài vô hạn */
.ml-management-block .ml-task-list,
.ml-history-list,
.ml-journal-list{
  max-height:520px !important;
  overflow:auto !important;
  overscroll-behavior:contain !important;
}

/* Nút/heading đỡ rối */
.ml-section-head p,
.ml-block-head p,
.ml-allocation-hint{
  font-size:12px !important;
  line-height:1.3 !important;
}

.ml-task-head-actions{
  gap:6px !important;
}

.ml-task-count,
.ml-balance-current,
.ml-reset-fav-current,
.ml-reset-fav-all,
.ml-btn,
.ml-tab{
  padding:7px 9px !important;
  font-size:11px !important;
}

/* Mobile */
@media(max-width:900px){
  .ml-task-row{
    grid-template-columns:1fr !important;
  }
  .ml-top-task-form{
    position:static !important;
    max-height:none !important;
  }
  .ml-current-task-list{
    max-height:520px !important;
  }
}


/* ===== TASK QUICK CREATE + INLINE EDIT PATCH ===== */
/* Giữ tính năng cũ, chỉ thêm lớp trải nghiệm nhỏ gọn. */

.ml-top-task-form.ml-mini-task-mode{
  display:block !important;
  padding:10px !important;
}

.ml-top-task-form.ml-mini-task-mode > *:not(.ml-mini-create-box){
  display:none !important;
}

.ml-top-task-form.ml-mini-task-mode.ml-quick-open{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.ml-top-task-form.ml-mini-task-mode.ml-quick-open > *:not(.ml-mini-create-box){
  display:block !important;
}

.ml-top-task-form.ml-mini-task-mode.ml-quick-open > .ml-full,
.ml-top-task-form.ml-mini-task-mode.ml-quick-open > .ml-top-add-task,
.ml-top-task-form.ml-mini-task-mode.ml-quick-open > .ml-audio-first-box{
  grid-column:1 / -1;
}

.ml-mini-create-box{
  grid-column:1 / -1;
  display:grid;
  gap:8px;
  padding:8px;
  border-radius:18px;
  background:linear-gradient(135deg,#fff7ed,#ffffff);
  border:1px solid rgba(249,115,22,.26);
}

.ml-mini-create-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:7px;
  align-items:center;
}

.ml-mini-task-input{
  width:100%;
  min-height:42px;
  max-height:92px;
  resize:none;
  border:1px solid #fed7aa;
  border-radius:15px;
  background:#fff;
  color:#0f172a;
  outline:none;
  padding:11px 12px;
  font-size:14px;
  line-height:1.35;
  font-weight:900;
}

.ml-mini-task-input:focus{
  border-color:#fb923c;
  box-shadow:0 0 0 4px rgba(251,146,60,.14);
}

.ml-mini-btn{
  min-height:42px;
  border:0;
  border-radius:999px;
  padding:9px 12px;
  background:#f1f5f9;
  color:#475569;
  font-size:13px;
  line-height:1;
  font-weight:1000;
  cursor:pointer;
  white-space:nowrap;
}

.ml-mini-btn.primary{
  background:linear-gradient(90deg,#fb923c,#ea580c);
  color:#fff;
  box-shadow:0 9px 18px rgba(249,115,22,.20);
}

.ml-mini-btn.mic{
  width:44px;
  padding:0;
  background:#0f172a;
  color:#fff;
}

.ml-mini-btn.child{
  background:#dcfce7;
  color:#166534;
}

.ml-mini-helper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
  color:#9a3412;
  font-size:11px;
  line-height:1.3;
  font-weight:1000;
}

.ml-mini-helper span{
  border-radius:999px;
  padding:5px 8px;
  background:#ffedd5;
}

.ml-task-title-row h3,
.ml-task-content h3{
  cursor:text;
}

.ml-task-title-row h3:hover,
.ml-task-content h3:hover{
  color:#ea580c !important;
  text-decoration:underline;
  text-underline-offset:3px;
}

.ml-quick-child-btn{
  background:#dcfce7 !important;
  color:#166534 !important;
}

.ml-task-item .ml-task-actions{
  align-items:center;
}

.ml-task-detail-zone{
  max-height:320px;
  overflow:auto;
  overscroll-behavior:contain;
  padding-right:4px;
}

.ml-subtask-list{
  max-height:240px;
  overflow:auto;
  overscroll-behavior:contain;
}

.ml-subtask-list::-webkit-scrollbar,
.ml-task-detail-zone::-webkit-scrollbar{
  width:6px;
}
.ml-subtask-list::-webkit-scrollbar-thumb,
.ml-task-detail-zone::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

@media(max-width:720px){
  .ml-mini-create-row{
    grid-template-columns:auto minmax(0,1fr);
  }
  .ml-mini-create-row .ml-mini-btn.primary,
  .ml-mini-create-row .ml-mini-btn.child{
    grid-column:1 / -1;
    width:100%;
  }
}

/* ===== V26 COMPACT TASK CREATE - STABLE UI ===== */
.ml-top-task-form.ml-compact-task-mode{
  display:block !important;
  position:sticky !important;
  top:10px !important;
  padding:8px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.82) !important;
  border:1px solid rgba(249,115,22,.22) !important;
  box-shadow:0 10px 28px rgba(15,23,42,.06) !important;
  max-height:none !important;
  overflow:visible !important;
}
.ml-top-task-form.ml-compact-task-mode > *:not(.ml-compact-create-box){
  display:none !important;
}
.ml-compact-create-box{
  display:grid !important;
  gap:7px !important;
}
.ml-compact-create-row{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) 42px 58px 38px !important;
  gap:6px !important;
  align-items:center !important;
}
.ml-compact-title-input{
  width:100% !important;
  min-height:38px !important;
  max-height:74px !important;
  margin:0 !important;
  padding:9px 11px !important;
  border-radius:14px !important;
  border:1px solid #dbe3ee !important;
  background:#fff !important;
  color:#0f172a !important;
  resize:none !important;
  overflow:auto !important;
  font-size:13px !important;
  line-height:1.28 !important;
  font-weight:850 !important;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.02) !important;
}
.ml-compact-title-input:focus{
  outline:none !important;
  border-color:#fb923c !important;
  box-shadow:0 0 0 3px rgba(251,146,60,.13) !important;
}
.ml-compact-action{
  min-width:0 !important;
  width:100% !important;
  height:38px !important;
  min-height:38px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:0 9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  background:#f1f5f9 !important;
  color:#475569 !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:1000 !important;
}
.ml-compact-action.mic{background:#0f172a !important;color:#fff !important;font-size:16px !important;padding:0 !important;}
.ml-compact-action.add{background:linear-gradient(90deg,#fb923c,#ea580c) !important;color:#fff !important;font-size:20px !important;box-shadow:0 8px 16px rgba(249,115,22,.18) !important;}
.ml-compact-action.child{background:#dcfce7 !important;color:#166534 !important;}
.ml-compact-action.more{background:#f8fafc !important;color:#64748b !important;font-size:18px !important;padding:0 !important;}
.ml-compact-audio-drawer,
.ml-compact-child-drawer,
.ml-compact-detail-drawer{
  padding:7px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  box-shadow:0 8px 18px rgba(15,23,42,.04) !important;
}
.ml-compact-audio-drawer[hidden],
.ml-compact-child-drawer[hidden],
.ml-compact-detail-drawer[hidden]{display:none !important;}
.ml-compact-native-audio{
  display:block !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.ml-compact-native-audio .ml-audio-first-head{
  display:none !important;
}
.ml-compact-native-audio .ml-task-audio-row{
  display:grid !important;
  grid-template-columns:auto auto auto minmax(0,1fr) !important;
  gap:6px !important;
  align-items:center !important;
  margin:0 !important;
}
.ml-compact-native-audio .ml-btn,
.ml-compact-native-audio button{
  min-height:30px !important;
  height:30px !important;
  border-radius:999px !important;
  padding:0 10px !important;
  font-size:12px !important;
  font-weight:1000 !important;
}
.ml-compact-native-audio .ml-task-audio-status{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-size:12px !important;
  font-weight:900 !important;
  color:#64748b !important;
}
.ml-compact-native-audio audio{
  grid-column:1 / -1 !important;
  width:100% !important;
  height:34px !important;
  margin-top:3px !important;
}
.ml-compact-child-drawer textarea,
.ml-compact-detail-drawer textarea{
  width:100% !important;
  min-height:58px !important;
  max-height:120px !important;
  margin:0 !important;
  padding:9px 10px !important;
  border-radius:13px !important;
  border:1px solid #dbe3ee !important;
  resize:vertical !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:12.5px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
}
.ml-compact-detail-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  gap:6px !important;
  margin-top:6px !important;
}
.ml-compact-detail-grid select{
  width:100% !important;
  min-height:34px !important;
  margin:0 !important;
  padding:7px 8px !important;
  border-radius:12px !important;
  border:1px solid #dbe3ee !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:12px !important;
  font-weight:900 !important;
}
.ml-compact-shake{animation:mlCompactShake .22s ease-in-out 1;}
@keyframes mlCompactShake{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}70%{transform:translateX(3px)}}
.ml-inline-edit-title{cursor:text !important;}
.ml-inline-edit-title:hover{color:#ea580c !important;text-decoration:underline;text-underline-offset:3px;}
.ml-task-actions .ml-quick-child-btn{
  background:#dcfce7 !important;
  color:#166534 !important;
  max-width:56px !important;
  padding-left:8px !important;
  padding-right:8px !important;
  white-space:nowrap !important;
}
@media(max-width:900px){
  .ml-top-task-form.ml-compact-task-mode{position:static !important;}
}
@media(max-width:720px){
  .ml-compact-create-row{grid-template-columns:38px minmax(0,1fr) 42px !important;}
  .ml-compact-action.child,.ml-compact-action.more{grid-column:auto !important;width:auto !important;}
  .ml-compact-detail-grid{grid-template-columns:1fr !important;}
  .ml-compact-native-audio .ml-task-audio-row{grid-template-columns:auto auto auto !important;}
  .ml-compact-native-audio .ml-task-audio-status{grid-column:1 / -1;}
}

/* ===== V27 HOTFIX: TASK TITLE FULL WIDTH + BUTTONS BELOW + AUDIO TOGGLE ===== */
.ml-top-task-form.ml-compact-task-mode{
  padding:10px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.86) !important;
}
.ml-compact-create-box{
  display:grid !important;
  gap:8px !important;
  width:100% !important;
}
.ml-compact-title-line{
  width:100% !important;
  min-width:0 !important;
}
.ml-compact-title-input{
  width:100% !important;
  box-sizing:border-box !important;
  min-height:42px !important;
  max-height:92px !important;
  padding:11px 13px !important;
  border-radius:15px !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  display:block !important;
}
.ml-compact-create-row{
  display:grid !important;
  grid-template-columns:42px minmax(78px, 1fr) minmax(72px, .9fr) 42px !important;
  gap:8px !important;
  align-items:center !important;
  width:100% !important;
}
.ml-compact-action{
  height:40px !important;
  min-height:40px !important;
  border-radius:999px !important;
  font-size:13px !important;
}
.ml-compact-action.mic{
  width:42px !important;
  padding:0 !important;
  background:#06122b !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(15,23,42,.12) !important;
}
.ml-compact-action.mic.recording{
  background:#ef4444 !important;
  color:#fff !important;
  animation:mlCompactRecPulse 1s ease-in-out infinite !important;
}
.ml-compact-action.mic.has-audio{
  background:#0f766e !important;
  color:#fff !important;
}
.ml-compact-action.add{
  font-size:14px !important;
  letter-spacing:.01em !important;
}
.ml-compact-action.more{
  width:42px !important;
  padding:0 !important;
}
.ml-compact-audio-drawer{
  border-color:rgba(239,68,68,.18) !important;
  background:linear-gradient(180deg,#fff,#fff7ed) !important;
}
.ml-compact-native-audio .ml-audio-first-head{
  display:none !important;
}
.ml-compact-native-audio .ml-task-audio-row{
  display:grid !important;
  grid-template-columns:auto auto auto minmax(0,1fr) !important;
  gap:7px !important;
  align-items:center !important;
}
.ml-compact-native-audio .ml-task-audio-row .ml-btn,
.ml-compact-native-audio .ml-task-audio-row button{
  height:32px !important;
  min-height:32px !important;
  border-radius:999px !important;
  padding:0 11px !important;
  font-size:12px !important;
}
.ml-compact-native-audio .ml-task-audio-preview{
  grid-column:1 / -1 !important;
  width:100% !important;
  height:36px !important;
  margin-top:4px !important;
}
@keyframes mlCompactRecPulse{
  0%,100%{transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,.24)}
  50%{transform:scale(1.04); box-shadow:0 0 0 8px rgba(239,68,68,0)}
}
@media(max-width:720px){
  .ml-compact-create-row{
    grid-template-columns:42px 1fr 1fr 42px !important;
  }
  .ml-compact-action.child,
  .ml-compact-action.more{
    grid-column:auto !important;
    width:100% !important;
  }
}

/* ===== V28 FINAL FIX: REAL AUDIO + NO +CON + INLINE EDIT + SCROLL CHAIN ===== */
.ml-top-task-form.ml-v28-compact-task-mode{
  max-height:none !important;
  overflow:visible !important;
}
.ml-top-task-form.ml-v28-compact-task-mode > *:not(.ml-compact-create-box){
  display:none !important;
}
.ml-v28-create-box{
  display:grid !important;
  gap:8px !important;
}
.ml-v28-create-row,
.ml-compact-create-row.ml-v28-create-row{
  display:grid !important;
  grid-template-columns:46px minmax(0,1fr) 46px !important;
  gap:8px !important;
  align-items:center !important;
}
.ml-v28-create-row .ml-compact-action.child{
  display:none !important;
}
.ml-v28-create-row .ml-compact-action.mic,
.ml-v28-create-row .ml-compact-action.more{
  height:42px !important;
  min-height:42px !important;
  border-radius:999px !important;
}
.ml-v28-create-row .ml-compact-action.add{
  height:42px !important;
  min-height:42px !important;
  border-radius:999px !important;
  font-size:26px !important;
  letter-spacing:0 !important;
}
.ml-compact-title-input{
  min-height:44px !important;
  max-height:88px !important;
  font-size:14px !important;
}
.ml-v28-audio-drawer{
  display:grid !important;
  gap:7px !important;
}
.ml-v28-audio-drawer[hidden]{display:none !important;}
.ml-v28-rec-line{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  color:#475569 !important;
  font-size:12px !important;
  font-weight:1000 !important;
}
.ml-v28-rec-dot{
  width:9px !important;
  height:9px !important;
  border-radius:999px !important;
  background:#cbd5e1 !important;
  flex:0 0 auto !important;
}
.ml-compact-action.mic.recording + .ml-compact-action.add,
.ml-compact-action.mic.recording{
  box-shadow:0 0 0 4px rgba(239,68,68,.12) !important;
}
.ml-compact-action.mic.recording{
  background:#dc2626 !important;
  color:#fff !important;
}
.ml-compact-action.mic.has-audio{
  background:#065f46 !important;
  color:#fff !important;
}
.ml-v28-audio-drawer audio{
  width:100% !important;
  height:36px !important;
}
.ml-v28-detail-drawer{
  display:grid !important;
  gap:7px !important;
}
.ml-v28-detail-drawer[hidden]{display:none !important;}
.ml-v28-detail-drawer textarea[data-compact-subtasks]{
  min-height:52px !important;
}
.ml-task-actions .ml-quick-child-btn{display:none !important;}
.ml-inline-edit-title,
.ml-inline-edit-subtask{
  cursor:text !important;
}
.ml-inline-edit-title:hover,
.ml-inline-edit-subtask:hover{
  color:#ea580c !important;
  text-decoration:underline !important;
  text-underline-offset:3px !important;
}
.ml-title-editing,
.ml-subtask-editing{
  outline:none !important;
  background:#fff7ed !important;
  box-shadow:0 0 0 3px rgba(249,115,22,.14) !important;
  border-radius:8px !important;
  padding:2px 4px !important;
  text-decoration:none !important;
}
.ml-inline-subtask-add{
  width:100% !important;
  min-height:34px !important;
  margin-top:7px !important;
  padding:8px 10px !important;
  border:1px dashed #cbd5e1 !important;
  border-radius:12px !important;
  background:#f8fafc !important;
  color:#0f172a !important;
  font-size:12.5px !important;
  font-weight:850 !important;
  outline:none !important;
}
.ml-inline-subtask-add:focus{
  border-color:#fb923c !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(251,146,60,.12) !important;
}
.ml-task-item.running .ml-task-time-row{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:5px !important;
  margin-top:6px !important;
}
.ml-task-item.running .ml-task-time-row div{
  padding:6px 8px !important;
  border-radius:11px !important;
}
.ml-task-item.running .ml-task-time-row span{
  display:none !important;
}
.ml-task-item.running .ml-task-time-row strong{
  margin:0 !important;
  font-size:13px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.ml-current-task-list,
.ml-task-detail-zone,
.ml-subtask-list,
.ml-history-list,
.ml-journal-list{
  overscroll-behavior:auto !important;
  overscroll-behavior-y:auto !important;
  touch-action:pan-y !important;
}
.ml-current-task-list{
  -webkit-overflow-scrolling:touch !important;
}
@media(max-width:720px){
  .ml-v28-create-row,
  .ml-compact-create-row.ml-v28-create-row{
    grid-template-columns:42px minmax(0,1fr) 42px !important;
  }
}


/* V29 - Focus music + bỏ nhãn V25 khỏi giao diện */
.ml-v25-mark{display:none!important}
.ml-v25-title{display:flex;align-items:center;gap:12px}
.ml-v25-title>div:not(.ml-v25-mark){min-width:0}
.ml-v25-focus-music{margin-top:12px;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(135deg,#f8fafc,#ffffff);padding:11px;display:grid;gap:10px}
.ml-v25-music-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ml-v25-music-head strong{display:block;font-size:15px;font-weight:1000;color:#0f172a;line-height:1.2}
.ml-v25-music-head span{display:block;margin-top:3px;font-size:12px;font-weight:850;color:#64748b}
.ml-v25-music-grid{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:8px;align-items:center}
.ml-v25-music-grid select{width:100%;border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:9px 11px;font-size:12px;font-weight:900;color:#0f172a;outline:none}
.ml-v25-volume{border:1px solid #e2e8f0;border-radius:15px;background:#fff;padding:7px 9px;display:grid;gap:3px}
.ml-v25-volume span{font-size:10px;font-weight:1000;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.ml-v25-volume input{width:100%;accent-color:#f97316}
.ml-v25-music-note{border-radius:14px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:900;line-height:1.35;padding:8px 10px}
#mlV25MusicToggle.danger{background:#fee2e2;color:#991b1b}
@media(max-width:620px){.ml-v25-music-grid{grid-template-columns:1fr}.ml-v25-music-head{flex-direction:column}.ml-v25-music-head .ml-v25-btn{width:100%}}

/* ===== V30 audio + child-task indicators ===== */
.ml-child-task-badge,
.ml-v25-child-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  flex:0 0 auto !important;
  padding:4px 7px !important;
  border-radius:999px !important;
  background:#dcfce7 !important;
  color:#166534 !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  white-space:nowrap !important;
}
.ml-task-title-row .ml-child-task-badge{margin-left:6px !important;}
.ml-v25-session-audio{
  display:block !important;
  width:100% !important;
  height:34px !important;
  margin-top:7px !important;
  border-radius:999px !important;
}
.ml-v25-session-task:has(.ml-v25-session-audio){align-items:start !important;}
.ml-v25-session-task b .ml-v25-child-badge,
.ml-v25-edit .ml-v25-child-badge{margin-left:4px !important;}
.ml-task-audio-detail audio,
.ml-audio-player audio,
.ml-task-audio-preview,
[data-compact-audio-preview]{
  min-height:34px !important;
}

/* ===== V31 FINAL - chắc tay khi hover/click, task con inline, lọc khía cạnh, audio/nhạc gọn ===== */
.ml-v25-workspace *{box-sizing:border-box}
.ml-v25-workspace .ml-v25-btn,
.ml-v25-workspace button,
.ml-v25-workspace input,
.ml-v25-workspace select,
.ml-v25-workspace textarea,
.ml-v25-workspace [contenteditable]{-webkit-tap-highlight-color:transparent}
.ml-v25-workspace .ml-v25-row,
.ml-v25-workspace .ml-v25-task,
.ml-v25-workspace .ml-v25-session-task,
.ml-v25-workspace .ml-v25-node{transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease!important;transform:none!important;will-change:auto!important}
.ml-v25-workspace .ml-v25-row:hover,
.ml-v25-workspace .ml-v25-task:hover,
.ml-v25-workspace .ml-v25-session-task:hover{transform:none!important}
.ml-v25-workspace .ml-v25-btn:hover,
.ml-v25-workspace .ml-v25-mini button:hover,
.ml-v25-workspace .ml-v25-session-task .run:hover{transform:none!important;filter:brightness(.98)}
.ml-v25-row[draggable="true"]{cursor:default!important}
.ml-v25-drag[draggable="true"]{cursor:grab!important;touch-action:none;user-select:none}
.ml-v25-drag[draggable="true"]:active{cursor:grabbing!important}
.ml-v25-row.task-row{min-height:43px!important;align-items:center!important}
.ml-v25-task{overflow:visible!important;contain:layout paint style}
.ml-v25-mini{min-width:92px;justify-content:flex-end;opacity:1!important;visibility:visible!important}
.ml-v25-name{min-width:0!important}
.ml-v25-edit{cursor:text;min-height:20px}
.ml-v25-edit:focus{cursor:text;min-height:20px}
.ml-v25-meta{display:flex!important;align-items:center!important;gap:5px!important;min-height:25px!important;max-height:25px!important;overflow:hidden!important;white-space:nowrap!important}
.ml-v25-inline-select,.ml-v25-inline-min{height:24px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#0f172a;font-size:10.5px;font-weight:900;padding:2px 7px;outline:none;max-width:96px}
.ml-v25-inline-select:focus,.ml-v25-inline-min:focus{border-color:#fb923c;box-shadow:0 0 0 3px rgba(251,146,60,.14)}
.ml-v25-inline-min{width:54px;text-align:center;font-variant-numeric:tabular-nums}
.ml-v25-lock-chip{height:24px;border:0;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:11px;font-weight:1000;padding:3px 7px;cursor:pointer}
.ml-v25-inline-child{margin:0 8px 8px 56px;padding:7px;border:1px dashed #fdba74;border-radius:14px;background:#fff7ed;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.ml-v25-inline-child input{width:100%;height:34px;border:1px solid #fed7aa;border-radius:999px;background:#fff;padding:8px 11px;color:#0f172a;font-size:12px;font-weight:900;outline:none}
.ml-v25-inline-child input:focus{border-color:#fb923c;box-shadow:0 0 0 3px rgba(251,146,60,.14)}
.ml-v25-inline-child span{font-size:10.5px;color:#9a3412;font-weight:1000;white-space:nowrap}
.ml-v25-tag-filter{display:flex;gap:6px;align-items:center;overflow-x:auto;padding:0 0 8px;scrollbar-width:thin}
.ml-v25-tag-filter button{border:0;border-radius:999px;background:#f1f5f9;color:#475569;padding:6px 9px;font-size:11px;font-weight:1000;white-space:nowrap;cursor:pointer}
.ml-v25-tag-filter button.active{background:#0f172a;color:#fff}
.ml-v25-tag-filter b{font-variant-numeric:tabular-nums;opacity:.78}
.ml-v25-panels{grid-template-columns:minmax(0,1.2fr) minmax(220px,.46fr)!important}
.ml-v25-side-tools{display:grid!important;align-content:start!important;gap:8px!important;padding:9px!important}
.ml-v25-focus-music{margin-top:0!important;padding:9px!important;border-radius:16px!important;gap:7px!important}
.ml-v25-focus-music.compact .ml-v25-music-head strong{font-size:13px!important}
.ml-v25-focus-music.compact .ml-v25-music-head span{font-size:11px!important}
.ml-v25-focus-music.compact .ml-v25-music-note{font-size:11px!important;padding:6px 8px!important}
.ml-v25-music-grid{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
.ml-v25-volume{padding:6px 8px!important;border-radius:12px!important}
.ml-v25-audio-details{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:0;overflow:hidden}
.ml-v25-audio-details summary{cursor:pointer;padding:9px 10px;font-size:12px;font-weight:1000;color:#0f172a;list-style:none}
.ml-v25-audio-details summary::-webkit-details-marker{display:none}
.ml-v25-audio-details .ml-v25-audio{padding:0 9px 9px}
.ml-v25-audio textarea{min-height:58px!important;max-height:100px!important}
.ml-v25-session-task{align-items:center!important;grid-template-columns:auto minmax(0,1fr) auto!important;min-height:52px!important;transition:none!important;transform:none!important}
.ml-v25-session-task-main{min-width:0;display:grid;gap:3px}
.ml-v25-session-task b{font-size:13px!important;line-height:1.2!important;min-height:20px!important}
.ml-v25-session-task small{display:flex!important;align-items:center!important;gap:5px!important;min-height:25px!important;max-height:25px!important;overflow:hidden!important;white-space:nowrap!important;margin-top:1px!important}
.ml-v25-session-task .run{width:34px;height:34px;padding:0!important;display:flex;align-items:center;justify-content:center}
.ml-v25-budget{height:34px!important;border-radius:13px!important}
.ml-v25-budget div{font-size:10px!important;min-width:54px!important;padding:0 5px!important}
.ml-v25-session-title-edit{display:inline-block;border-radius:8px;padding:1px 4px;outline:none;cursor:text;min-width:70px}
.ml-v25-session-title-edit:hover{background:#fff7ed}
.ml-v25-session-title-edit:focus{background:#fff7ed;box-shadow:0 0 0 3px rgba(249,115,22,.12)}
.ml-v25-child-badge{display:inline-flex!important;align-items:center!important;gap:2px!important;height:20px!important;padding:2px 6px!important;border-radius:999px!important;background:#ecfeff!important;color:#155e75!important;font-size:10.5px!important;font-weight:1000!important;vertical-align:middle!important;white-space:nowrap!important;text-decoration:none!important}
.ml-v25-tree,.ml-v25-drop{overscroll-behavior:auto!important;scroll-behavior:auto!important}
.ml-v25-drop{max-height:400px;overflow:auto;align-content:start!important}
.ml-task-time-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-top:6px!important}
.ml-task-time-row div{padding:5px 7px!important;border-radius:12px!important;min-height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.ml-task-time-row span{display:none!important}
.ml-task-time-row strong{margin:0!important;font-size:13px!important;font-variant-numeric:tabular-nums!important}
.ml-task-item:hover{transform:none!important}
.ml-task-actions .ml-btn:hover,.ml-drag-handle:hover{transform:none!important}
.ml-allocation-head strong{font-size:14px!important}
.ml-allocation-hint{font-size:0!important}
.ml-allocation-hint::before{content:'↔ 🔒 ⚖';font-size:12px;color:#64748b;font-weight:1000}
.ml-budget-meta,.ml-budget-title{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:980px){.ml-v25-panels{grid-template-columns:1fr!important}.ml-v25-side-tools{grid-template-columns:1fr}.ml-v25-drop{max-height:none}.ml-v25-inline-child{margin-left:14px;grid-template-columns:1fr}.ml-v25-meta,.ml-v25-session-task small{max-height:none!important;flex-wrap:wrap!important}}

/* V31 - đổi tên phiên từng ngày trong Daily Rhythm */
.ml-session-title-inline{display:inline-block;max-width:100%;border-radius:9px;padding:1px 4px;outline:none;cursor:text;min-height:28px}
.ml-session-title-inline:hover{background:#fff7ed}
.ml-session-title-inline:focus{background:#fff7ed;box-shadow:0 0 0 3px rgba(249,115,22,.14);white-space:normal}
.ml-session-item{transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease!important;transform:none!important}
.ml-session-item:hover{transform:none!important}


/* ===== V32 - GỘP TẠO NHIỆM VỤ THÀNH 1 CHỖ, ƯU TIÊN KHỐI "VIỆC CẦN LÀM" ===== */
.ml-v32-hidden-create,
.ml-v25-main > .ml-v25-quick{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:0 !important;
}
.ml-v25-workspace .ml-v25-title span,
.ml-v25-workspace .ml-v25-quick-hint,
.ml-v25-workspace .ml-v25-panel-head span,
.ml-v25-workspace .ml-v25-music-head span,
.ml-v25-workspace .ml-v25-music-note:empty,
.ml-task-panel .ml-section-head p{
  display:none !important;
}
.ml-v25-top{
  min-height:54px !important;
  padding:14px 18px !important;
  gap:10px !important;
}
.ml-v25-title b{
  font-size:20px !important;
  line-height:1.15 !important;
}
.ml-v25-actions{
  gap:7px !important;
  align-items:center !important;
}
.ml-v25-actions .ml-v25-btn,
.ml-v25-side-head .ml-v25-btn,
.ml-v25-panel-head .ml-v25-btn{
  min-width:40px !important;
  height:36px !important;
  padding:0 12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
}
.ml-v25-side-head{
  min-height:42px !important;
}
.ml-v25-search{
  grid-template-columns:36px minmax(0,1fr) !important;
  gap:6px !important;
}
.ml-v25-search button{
  width:36px !important;
  height:36px !important;
}
.ml-v25-search input{
  height:38px !important;
  font-size:13px !important;
}
.ml-v25-panels{
  margin-top:0 !important;
  grid-template-columns:minmax(0,1fr) minmax(190px,.28fr) !important;
  gap:10px !important;
}
.ml-v25-panel{
  padding:12px !important;
  border-radius:20px !important;
}
.ml-v25-panel-head{
  min-height:36px !important;
  margin-bottom:8px !important;
  align-items:center !important;
}
.ml-v25-panel-head strong{
  font-size:16px !important;
  line-height:1.15 !important;
}
.ml-v25-side-tools{
  max-width:260px !important;
}
.ml-v25-focus-music{
  padding:8px !important;
  border-radius:15px !important;
}
.ml-v25-music-head{
  align-items:center !important;
}
.ml-v25-music-head strong{
  font-size:13px !important;
}
.ml-v25-music-grid select{
  height:34px !important;
  padding:6px 9px !important;
  font-size:11.5px !important;
}
.ml-v25-volume{
  grid-template-columns:22px minmax(0,1fr) !important;
  align-items:center !important;
  gap:6px !important;
  padding:5px 7px !important;
}
.ml-v25-volume span{
  font-size:0 !important;
}
.ml-v25-volume span::before{
  content:'🔊';
  font-size:13px !important;
}
.ml-v25-audio-details summary{
  min-height:36px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:7px !important;
  font-size:15px !important;
}
.ml-v25-audio-details .ml-v25-actions{
  gap:6px !important;
}
.ml-v25-audio-details .ml-v25-btn{
  min-width:34px !important;
  height:32px !important;
  padding:0 8px !important;
}
.ml-v25-audio-status{
  font-size:11px !important;
  font-weight:900 !important;
}
.ml-v25-audio textarea{
  min-height:46px !important;
  max-height:72px !important;
  font-size:12px !important;
}
.ml-compact-create-box{
  padding:10px !important;
  border-radius:18px !important;
}
.ml-compact-title-input{
  min-height:38px !important;
  font-size:14px !important;
}
.ml-compact-create-row.ml-v28-create-row{
  grid-template-columns:42px minmax(0,1fr) 42px !important;
  gap:8px !important;
}
.ml-compact-action{
  height:40px !important;
  min-height:40px !important;
}
.ml-v28-detail-drawer{
  margin-top:6px !important;
}
.ml-v28-detail-drawer textarea{
  min-height:48px !important;
  max-height:86px !important;
}
.ml-v25-tag-filter{
  padding-bottom:6px !important;
  gap:4px !important;
}
.ml-v25-tag-filter button{
  font-size:0 !important;
  padding:6px 8px !important;
  min-width:34px !important;
}
.ml-v25-tag-filter button[data-tag="all"]::before{content:'◎';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Sức khỏe"]::before{content:'💪';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Sự nghiệp"]::before{content:'💼';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Học hành"]::before{content:'📚';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Mối quan hệ"]::before{content:'🤝';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Tài chính"]::before{content:'💰';font-size:12px;}
.ml-v25-tag-filter button[data-tag="Giải trí"]::before{content:'🎮';font-size:12px;}
.ml-v25-tag-filter button b{
  font-size:10px !important;
  margin-left:3px !important;
}
.ml-v25-session-task{
  min-height:48px !important;
  padding:8px 10px !important;
}
.ml-v25-session-task b{
  font-size:12.5px !important;
}
.ml-v25-session-task small span:first-child{
  max-width:95px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.ml-v25-budget{
  height:28px !important;
  margin-top:6px !important;
}
.ml-v25-budget div{
  font-size:9.5px !important;
  min-width:42px !important;
}
.ml-allocation-panel .ml-allocation-head{
  padding-bottom:6px !important;
}
.ml-allocation-panel .ml-allocation-head strong{
  font-size:13px !important;
}
.ml-allocation-panel .ml-allocation-summary{
  font-size:12px !important;
}
.ml-time-budget-segment .ml-budget-title{
  max-width:70px !important;
}
.ml-time-budget-segment .ml-budget-meta{
  font-size:9px !important;
}
@media(max-width:980px){
  .ml-v25-panels{grid-template-columns:1fr !important;}
  .ml-v25-side-tools{max-width:none !important;}
}


/* V33: remove the old project workspace completely. */
#mlV25Workspace,
.ml-v25-workspace,
.ml-project-workspace {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* V33: reduce instructional copy in the main task area; icons/tooltips carry secondary meaning. */
.ml-focus-app[data-v25-workspace-removed="true"] .ml-task-panel .ml-section-head p,
.ml-focus-app[data-v25-workspace-removed="true"] .ml-allocation-hint {
  display: none !important;
}
.ml-focus-app[data-v25-workspace-removed="true"] .ml-allocation-head {
  gap: 6px !important;
}
.ml-focus-app[data-v25-workspace-removed="true"] .ml-allocation-head strong {
  font-size: 13px !important;
}

/* ===== V34 TODO UX FINAL - compact, chắc thao tác, ít chữ ===== */
.ml-task-panel .ml-section-head p,
.ml-allocation-hint,
.ml-audio-first-head,
.ml-top-task-form > label,
.ml-top-task-form .ml-task-audio-row,
.ml-top-task-form .ml-form-detail-toggle{display:none!important;}
.ml-task-panel .ml-section-head{align-items:center!important;gap:10px!important;margin-bottom:10px!important;}
.ml-task-panel .ml-section-head h2{font-size:18px!important;margin:0!important;}
.ml-task-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
.ml-task-count,.ml-balance-current,.ml-reset-fav-current,.ml-reset-fav-all{height:30px!important;min-height:30px!important;padding:0 10px!important;border-radius:999px!important;font-size:12px!important;white-space:nowrap!important;}
.ml-reset-fav-current{font-size:0!important;}.ml-reset-fav-current::before{content:'↺ Phiên';font-size:12px!important;}
.ml-reset-fav-all{font-size:0!important;}.ml-reset-fav-all::before{content:'↺ Tất cả';font-size:12px!important;}
.ml-task-row{gap:12px!important;align-items:flex-start!important;}
.ml-top-task-form{min-width:220px!important;max-width:280px!important;padding:10px!important;border-radius:18px!important;position:sticky!important;top:10px!important;}
.ml-compact-create-box{gap:8px!important;}
.ml-compact-title-input{min-height:40px!important;max-height:74px!important;border-radius:14px!important;font-size:14px!important;line-height:1.35!important;padding:10px 12px!important;}
.ml-compact-create-row{display:grid!important;grid-template-columns:44px 1fr 44px!important;gap:8px!important;}
.ml-compact-action{height:38px!important;border-radius:999px!important;font-size:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:background .14s ease,border-color .14s ease,color .14s ease!important;transform:none!important;}
.ml-compact-action.add{font-size:0!important;}.ml-compact-action.add::before{content:'+';font-size:22px!important;font-weight:900!important;}
.ml-compact-detail-drawer textarea{min-height:56px!important;max-height:88px!important;font-size:13px!important;}
.ml-current-task-wrap{min-width:0!important;}
.ml-allocation-panel{padding:10px 12px!important;border-radius:16px!important;margin-bottom:8px!important;}
.ml-allocation-head{margin-bottom:8px!important;}
.ml-allocation-head strong{font-size:14px!important;}
.ml-allocation-summary{font-size:12px!important;}
.ml-time-budget-bar{min-height:42px!important;height:auto!important;border-radius:14px!important;}
.ml-budget-segment{min-height:38px!important;padding:6px 8px!important;overflow:hidden!important;}
.ml-budget-segment>div:first-child{gap:2px!important;}
.ml-budget-title{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
.ml-budget-meta{font-size:11px!important;white-space:nowrap!important;}
.ml-budget-lock{width:20px!important;height:20px!important;min-width:20px!important;margin-left:4px!important;}
.ml-budget-handle{width:8px!important;right:-4px!important;}
.ml-task-aspect-filter{display:flex!important;gap:6px!important;align-items:center!important;overflow-x:auto!important;padding:4px 1px 8px!important;margin:0 0 4px!important;scrollbar-width:thin!important;}
.ml-aspect-filter-btn{border:1px solid #e5eaf3!important;background:#f8fafc!important;color:#64748b!important;border-radius:999px!important;height:28px!important;padding:0 10px!important;font-weight:800!important;font-size:12px!important;white-space:nowrap!important;cursor:pointer!important;transition:background .14s ease,border-color .14s ease,color .14s ease!important;}
.ml-aspect-filter-btn small{font-size:10px!important;opacity:.65!important;margin-left:3px!important;}
.ml-aspect-filter-btn.active{background:#0f172a!important;border-color:#0f172a!important;color:#fff!important;}
.ml-current-task-list,.ml-task-list{overscroll-behavior:auto!important;scroll-behavior:auto!important;}
.ml-task-item{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:10px 12px!important;min-height:74px!important;border-radius:16px!important;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease!important;transform:none!important;will-change:auto!important;}
.ml-task-item:hover{transform:none!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;}
.ml-task-item.running{border-color:#fb923c!important;box-shadow:0 0 0 1px rgba(251,146,60,.18),0 10px 28px rgba(251,146,60,.08)!important;}
.ml-task-left{display:flex!important;align-items:center!important;gap:6px!important;}
.ml-drag-handle{width:28px!important;height:28px!important;border-radius:9px!important;cursor:grab!important;touch-action:none!important;}
.ml-drag-handle:active{cursor:grabbing!important;}
.ml-task-check{width:18px!important;height:18px!important;min-width:18px!important;}
.ml-task-content{min-width:0!important;}
.ml-task-title-row{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 6px!important;min-height:26px!important;}
.ml-task-title-row h3{font-size:15px!important;line-height:1.25!important;margin:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;cursor:text!important;}
.ml-task-title-row h3.ml-title-editing{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;outline:2px solid rgba(59,130,246,.25)!important;border-radius:8px!important;padding:2px 5px!important;background:#fff!important;}
.ml-child-task-badge{border:0!important;background:#e0f2fe!important;color:#075985!important;border-radius:999px!important;min-height:24px!important;padding:0 8px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;cursor:pointer!important;}
.ml-child-task-badge:not(.has-child){opacity:.55;background:#f1f5f9!important;color:#64748b!important;}
.ml-task-desc-text{display:none!important;}
.ml-task-meta{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin:0!important;}
.ml-task-meta-inline .ml-pill,.ml-task-meta-inline select.ml-pill,.ml-task-meta-inline button.ml-pill{height:26px!important;min-height:26px!important;padding:0 8px!important;border-radius:999px!important;font-size:12px!important;font-weight:800!important;line-height:26px!important;border:1px solid transparent!important;white-space:nowrap!important;max-width:140px!important;}
.ml-task-meta-inline select.ml-pill{appearance:auto!important;background:#f8fafc!important;border-color:#e2e8f0!important;color:#334155!important;cursor:pointer!important;}
.ml-task-meta-inline button.ml-pill{cursor:pointer!important;}
.ml-mini-progress{height:6px!important;margin:8px 0 6px!important;border-radius:999px!important;}
.ml-task-time-row{margin:0!important;}
.ml-task-time-compact{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;}
.ml-task-time-compact>div{display:flex!important;align-items:center!important;gap:5px!important;height:28px!important;min-height:28px!important;padding:0 9px!important;border-radius:10px!important;background:#f8fafc!important;border:1px solid #e5eaf3!important;min-width:auto!important;}
.ml-task-time-compact>div span{font-size:12px!important;color:#64748b!important;}
.ml-task-time-compact>div strong{font-size:14px!important;line-height:1!important;white-space:nowrap!important;}
.ml-inline-min-wrap{display:flex!important;align-items:center!important;gap:4px!important;height:28px!important;padding:0 7px!important;border:1px solid #fdebd3!important;background:#fff7ed!important;border-radius:10px!important;font-size:11px!important;color:#c2410c!important;font-weight:900!important;}
.ml-inline-minutes{width:46px!important;height:22px!important;border:0!important;background:transparent!important;font-size:13px!important;font-weight:900!important;color:#111827!important;outline:0!important;padding:0!important;}
.ml-task-actions{display:flex!important;align-items:center!important;gap:6px!important;opacity:1!important;visibility:visible!important;min-width:178px!important;justify-content:flex-end!important;}
.ml-task-actions .ml-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border-radius:999px!important;font-size:13px!important;display:flex!important;align-items:center!important;justify-content:center!important;transform:none!important;transition:background .12s ease,border-color .12s ease,color .12s ease!important;}
.ml-task-actions .finish{display:none!important;}
.ml-task-detail-zone{margin-top:8px!important;border-radius:14px!important;padding:8px!important;background:#f8fafc!important;border:1px dashed #dbe4f0!important;max-height:260px!important;overflow:auto!important;overscroll-behavior:auto!important;}
.ml-subtask-list{display:grid!important;gap:6px!important;max-height:210px!important;overflow:auto!important;overscroll-behavior:auto!important;padding:0!important;}
.ml-subtask-row{height:30px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 8px!important;border-radius:10px!important;background:#fff!important;border:1px solid #e5eaf3!important;}
.ml-subtask-row span{font-size:13px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ml-subtask-row.done span{text-decoration:line-through!important;color:#94a3b8!important;}
.ml-subtask-empty{font-size:12px!important;color:#94a3b8!important;padding:6px 8px!important;}
.ml-inline-subtask-add{height:34px!important;border-radius:10px!important;border:1px solid #fed7aa!important;background:#fff7ed!important;padding:0 10px!important;font-size:13px!important;font-weight:800!important;color:#7c2d12!important;}
.ml-subtask-progress{font-size:12px!important;color:#64748b!important;font-weight:800!important;}
.ml-task-audio-detail{display:grid!important;gap:8px!important;background:#fff!important;border-radius:12px!important;padding:8px!important;border:1px solid #e5eaf3!important;}
.ml-task-audio-detail audio{width:100%!important;height:34px!important;}
.ml-audio-rate-row{display:flex!important;gap:6px!important;flex-wrap:wrap!important;}
.ml-audio-rate{height:26px!important;border-radius:999px!important;border:0!important;padding:0 10px!important;font-size:12px!important;font-weight:900!important;}
.ml-audio-note{min-height:52px!important;font-size:13px!important;border-radius:10px!important;}
.ml-v34-focus-music{display:flex!important;align-items:center!important;gap:6px!important;background:#fff7ed!important;border:1px solid #fed7aa!important;border-radius:999px!important;padding:4px 6px!important;max-width:430px!important;}
.ml-v34-focus-music button{width:28px!important;height:28px!important;border:0!important;border-radius:999px!important;background:#fb923c!important;color:#fff!important;font-weight:900!important;cursor:pointer!important;}
.ml-v34-focus-music button.playing{background:#0f172a!important;}
.ml-v34-focus-music select{height:28px!important;border:0!important;background:#fff!important;border-radius:999px!important;padding:0 8px!important;font-size:12px!important;font-weight:800!important;color:#334155!important;max-width:118px!important;}
.ml-v34-focus-music input[type='range']{width:74px!important;accent-color:#f97316!important;}
.ml-v34-music-note{font-size:11px!important;color:#9a3412!important;font-weight:800!important;white-space:nowrap!important;max-width:105px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ml-session-title-inline{cursor:text!important;}
.ml-session-title-inline:hover{outline:2px solid rgba(249,115,22,.18)!important;border-radius:8px!important;}
.ml-session-title-inline:focus{outline:2px solid rgba(59,130,246,.28)!important;border-radius:8px!important;background:#fff!important;}
@media (max-width: 980px){
  .ml-task-row{display:block!important;}
  .ml-top-task-form{position:relative!important;top:auto!important;max-width:none!important;margin-bottom:10px!important;}
  .ml-task-item{grid-template-columns:42px minmax(0,1fr)!important;}
  .ml-task-actions{grid-column:2!important;justify-content:flex-start!important;min-width:0!important;margin-top:6px!important;}
  .ml-v34-focus-music{max-width:100%!important;border-radius:18px!important;flex-wrap:wrap!important;}
}

/* ===== V36 task stability + slimmer task card ===== */
.ml-current-task-list .ml-task-item,
.ml-task-list .ml-task-item{
  padding:8px 9px !important;
  gap:8px !important;
  border-radius:16px !important;
  align-items:flex-start !important;
  transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease !important;
  transform:none !important;
}
.ml-current-task-list .ml-task-item:hover,
.ml-task-list .ml-task-item:hover{
  transform:none !important;
  box-shadow:0 8px 22px rgba(15,23,42,.07) !important;
}
.ml-task-content{gap:4px !important; min-width:0 !important;}
.ml-task-title-row{gap:6px !important; min-height:24px !important; align-items:center !important;}
.ml-task-title-row h3,
.ml-inline-edit-title{
  font-size:14px !important;
  line-height:1.25 !important;
  margin:0 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.ml-title-editing{white-space:normal !important; overflow:visible !important; background:rgba(255,255,255,.9) !important; outline:2px solid rgba(59,130,246,.25) !important; border-radius:8px !important; padding:2px 4px !important;}
.ml-task-meta-inline{gap:4px !important; flex-wrap:wrap !important; margin-top:2px !important;}
.ml-task-meta-inline .ml-pill,
.ml-pill{
  min-height:22px !important;
  padding:2px 7px !important;
  border-radius:999px !important;
  font-size:11px !important;
  line-height:1.1 !important;
}
.ml-inline-select{max-width:96px !important; padding-right:18px !important;}
.ml-mini-progress{height:4px !important; margin:3px 0 !important; border-radius:999px !important;}
.ml-task-time-compact{
  display:flex !important;
  gap:5px !important;
  flex-wrap:wrap !important;
  margin-top:3px !important;
}
.ml-task-time-compact > div,
.ml-inline-min-wrap{
  min-height:24px !important;
  padding:3px 7px !important;
  border-radius:10px !important;
  font-size:11px !important;
}
.ml-inline-min-wrap input{width:46px !important; height:18px !important; font-size:11px !important;}
.ml-task-actions{gap:4px !important; opacity:.88 !important; visibility:visible !important; flex-shrink:0 !important;}
.ml-task-actions .ml-btn{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  padding:0 !important;
  border-radius:10px !important;
  font-size:13px !important;
}
.ml-task-actions .ml-btn.start{background:linear-gradient(135deg,#22c55e,#16a34a) !important; color:#fff !important; border-color:transparent !important; box-shadow:0 5px 12px rgba(22,163,74,.25) !important;}
.ml-task-actions .ml-btn.start:active{transform:translateY(1px) !important;}
.ml-drag-handle{width:22px !important; height:24px !important; border-radius:8px !important; cursor:grab !important;}
.ml-task-check{width:17px !important; height:17px !important;}
.ml-task-left{gap:5px !important; padding-top:2px !important;}
.ml-task-desc-text{font-size:11px !important; line-height:1.25 !important; margin:0 !important; display:-webkit-box !important; -webkit-line-clamp:1 !important; -webkit-box-orient:vertical !important; overflow:hidden !important;}
.ml-child-task-badge{min-height:22px !important; padding:2px 7px !important; font-size:11px !important; border-radius:999px !important; flex-shrink:0 !important;}
.ml-subtask-list{padding:7px !important; border-radius:12px !important; margin-top:5px !important;}
.ml-subtask-row{min-height:24px !important; padding:3px 5px !important; font-size:12px !important;}
.ml-inline-subtask-add{height:30px !important; font-size:12px !important; border-radius:10px !important;}
.ml-aspect-filter-line{display:flex; align-items:center; gap:5px; flex-wrap:wrap;}
.ml-task-aspect-filter{gap:5px !important; margin:6px 0 !important;}
.ml-aspect-filter-btn{min-height:26px !important; padding:3px 8px !important; font-size:11px !important; border-radius:999px !important;}
.ml-tag-manager-inline{display:flex; align-items:center; gap:5px; flex-wrap:wrap; padding:6px; margin-top:5px; border:1px solid rgba(148,163,184,.25); background:rgba(248,250,252,.75); border-radius:12px;}
.ml-tag-manager-inline select,.ml-tag-manager-inline input{height:30px; border:1px solid rgba(148,163,184,.4); border-radius:9px; padding:0 8px; font-size:12px; background:white;}
.ml-tag-manager-inline input{min-width:170px; flex:1;}
.ml-tag-manager-inline button{width:30px; height:30px; border-radius:9px; border:1px solid rgba(148,163,184,.35); background:white; cursor:pointer;}
.ml-tag-manager-inline button:hover{background:#f8fafc;}
.ml-tag-manage-btn{font-weight:700 !important;}

/* ===== LIFE CRM SANDBOX VISUAL SHELL ===== */
body:has(.ml-focus-app[data-life-goals-v1="true"]){
  background:#e8e5dc;
}
.ml-focus-app[data-life-goals-v1="true"]{
  max-width:none !important;
  width:100%;
  min-height:calc(100vh - 20px);
  margin:0 auto !important;
  padding:20px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#e8e5dc !important;
  box-shadow:none !important;
  overflow-x:hidden;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:18px;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
  grid-column:1;
  min-height:calc(100vh - 40px);
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:0 !important;
  margin:0 !important;
  padding:20px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:30px !important;
  background:linear-gradient(180deg,#1d2a20 0%,#08241c 52%,#061a16 100%) !important;
  color:#fff !important;
  box-shadow:0 24px 70px rgba(6,26,22,.28) !important;
  position:sticky;
  top:20px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head::before{
  content:"CRM";
  display:inline-flex;
  margin:0 0 14px;
  padding:6px 13px;
  border-radius:999px;
  border:1px solid rgba(245,188,86,.42);
  color:#f5c66f;
  font-size:13px;
  line-height:1;
  font-weight:1000;
  letter-spacing:1px;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div{
  width:100%;
  min-height:184px;
  padding:20px 18px;
  border-radius:26px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head span{
  display:none;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
  max-width:200px;
  margin:0 !important;
  color:#fff !important;
  font-size:34px !important;
  line-height:1.12 !important;
  letter-spacing:0 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2::after{
  content:"CRM";
  display:block;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head p{
  width:100%;
  margin:14px 0 20px !important;
  color:rgba(255,255,255,.68) !important;
  font-size:14px !important;
  line-height:1.45 !important;
  text-align:left !important;
  font-weight:900 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head::after{
  content:"Mạnh Life\a Admin · Life system";
  white-space:pre-line;
  margin-top:auto;
  width:100%;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size:15px;
  line-height:1.45;
  font-weight:1000;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
  grid-column:2;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
  min-width:0;
  padding:26px;
  border-radius:34px;
  background:#fffdf7;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
  position:static !important;
  width:100%;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:14px !important;
  padding:0 0 20px !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  align-self:stretch;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
  min-height:62px !important;
  display:grid !important;
  grid-template-columns:7px 34px minmax(0,1fr) !important;
  align-items:center !important;
  gap:12px !important;
  padding:12px 14px !important;
  border:1px solid transparent !important;
  border-radius:20px !important;
  background:transparent !important;
  color:rgba(255,255,255,.64) !important;
  box-shadow:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool:hover,
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool.active{
  background:rgba(255,255,255,.10) !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#fff !important;
  transform:none !important;
}
.ml-blueprint-nav-accent{
  grid-column:1;
  width:5px;
  height:30px;
  border-radius:999px;
  background:transparent;
}
.ml-blueprint-tool.active .ml-blueprint-nav-accent{
  background:linear-gradient(180deg,#f2bd55,#20a475);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-icon{
  grid-column:2;
  width:32px !important;
  height:32px !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.06) !important;
  color:#f2bd55 !important;
  font-size:18px !important;
  box-shadow:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool > div{
  grid-column:3;
  min-width:0;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool strong{
  color:inherit !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:1000 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool small{
  display:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool-status{
  display:none !important;
}
.ml-life-blueprint-workspace,
.ml-life-blueprint-detail,
.ml-sandbox-crm-shell{
  min-width:0;
}
.ml-sandbox-crm-shell{
  display:grid;
  gap:14px;
}
.ml-sandbox-top-actions{
  min-height:78px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border-bottom:1px solid #e7e1d4;
}
.ml-sandbox-check-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ml-sandbox-check-actions button,
.ml-sandbox-filter-panel button,
.ml-sandbox-board-head button,
.ml-sandbox-bulk-row button{
  min-height:48px;
  border-radius:18px;
  border:1px solid #ded9cf;
  background:#fffef9;
  color:#153228;
  font-size:14px;
  font-weight:1000;
  padding:0 18px;
  box-shadow:0 2px 0 rgba(15,23,42,.03);
}
.ml-sandbox-check-actions button:first-child{
  background:#def4eb;
  border-color:#b8dfd1;
  color:#0f765e;
}
.ml-sandbox-check-actions button:last-child{
  background:#fff4db;
  border-color:#f1d8a5;
  color:#936018;
}
.ml-sandbox-top-title{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#102a22;
}
.ml-sandbox-top-title > span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#0b3329;
  color:#f5c66f;
  font-size:22px;
}
.ml-sandbox-top-title strong{
  display:block;
  color:#102a22;
  font-size:24px;
  line-height:1;
  font-weight:1000;
}
.ml-sandbox-top-title small{
  display:block;
  max-width:520px;
  margin-top:5px;
  color:#748078;
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ml-sandbox-bell{
  width:56px;
  height:56px;
  border-radius:999px;
  border:1px solid #ded9cf;
  background:#fffef9;
  color:#153228;
  font-size:24px;
}
.ml-sandbox-kpi-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(150px,1fr));
  gap:12px;
}
.ml-sandbox-kpi-card{
  position:relative;
  min-height:126px;
  padding:20px 18px 16px;
  border-radius:22px;
  background:linear-gradient(135deg,#fffdf7,#f7efe2);
  border:1px solid #e6dccb;
  box-shadow:inset 5px 0 0 #2aa676,0 8px 20px rgba(15,23,42,.045);
}
.ml-sandbox-kpi-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#0b3329;
  color:#f5c66f;
  font-size:17px;
  font-weight:1000;
}
.ml-sandbox-kpi-card span{
  display:block;
  margin-top:10px;
  color:#717d76;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.ml-sandbox-kpi-card strong{
  display:block;
  margin-top:9px;
  color:#092720;
  font-size:28px;
  line-height:1;
  font-weight:1000;
}
.ml-sandbox-kpi-card small{
  display:block;
  margin-top:7px;
  color:#78837b;
  font-size:12px;
  line-height:1.3;
  font-weight:900;
}
.ml-sandbox-filter-panel{
  display:grid;
  grid-template-columns:repeat(6,minmax(150px,1fr));
  gap:12px;
  padding:16px;
  border-radius:26px;
  background:#fffaf0;
  border:1px solid #e8dfd1;
  box-shadow:0 8px 24px rgba(15,23,42,.035);
}
.ml-sandbox-filter-panel button:nth-child(2){
  background:#e8f8ef;
  border-color:#bee5d1;
  justify-content:flex-start;
}
.ml-sandbox-data-board{
  overflow:hidden;
  border-radius:26px;
  background:#fffdf7;
  border:1px solid #e8dfd1;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.ml-sandbox-board-head{
  display:grid;
  grid-template-columns:250px minmax(240px,1fr) minmax(360px,auto) auto;
  gap:14px;
  align-items:center;
  padding:16px;
  border-bottom:1px solid #e8dfd1;
}
.ml-sandbox-board-head h3{
  margin:0;
  color:#102a22;
  font-size:25px;
  line-height:1;
  font-weight:1000;
}
.ml-sandbox-board-head p{
  margin:7px 0 0;
  color:#758078;
  font-size:13px;
  line-height:1.25;
  font-weight:900;
}
.ml-sandbox-board-search{
  min-width:0;
  height:52px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  padding:0 16px;
  border:1px solid #ddd8cf;
  border-radius:18px;
  background:#fff;
}
.ml-sandbox-board-search span{
  color:#102a22;
  font-size:20px;
  font-weight:1000;
}
.ml-sandbox-board-search input{
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#102a22;
  font-size:14px;
  font-weight:900;
}
.ml-sandbox-tabs{
  display:flex;
  gap:5px;
  padding:6px;
  border-radius:22px;
  background:#f6efe4;
  border:1px solid #e5dccd;
}
.ml-sandbox-tabs button{
  min-height:40px;
  padding:0 14px;
  border:0;
  border-radius:16px;
  background:transparent;
  color:#748078;
  box-shadow:none;
}
.ml-sandbox-tabs button.active{
  background:#0b3329;
  color:#fff;
}
.ml-sandbox-action-icons{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.ml-sandbox-action-icons button{
  width:52px;
  min-width:52px;
  padding:0;
  border-radius:999px;
  background:#fffef9;
}
.ml-sandbox-action-icons button:nth-child(3){
  background:#0b3329;
  color:#fff;
}
.ml-sandbox-action-icons button:nth-child(4){
  width:auto;
  min-width:74px;
  color:#b3312f;
  background:#fde7e3;
  border-color:#ebb8b1;
}
.ml-sandbox-bulk-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  background:linear-gradient(90deg,#eefaf2,#fffdf7);
  border-bottom:1px solid #e8dfd1;
}
.ml-sandbox-bulk-row strong{
  color:#1a9b70;
  font-size:18px;
  font-weight:1000;
}
.ml-sandbox-bulk-row > div{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ml-sandbox-bulk-row button{
  min-height:42px;
  border-radius:16px;
}
.ml-sandbox-bulk-row button:nth-child(2){
  background:#7f8c83;
  color:#fff;
}
.ml-sandbox-pipeline-row{
  display:flex;
  gap:10px;
  align-items:center;
  padding:14px 16px;
  overflow-x:auto;
  border-bottom:1px solid #e8dfd1;
}
.ml-sandbox-pipeline-chip{
  flex:0 0 auto;
  min-height:58px;
  display:grid;
  grid-template-columns:26px auto;
  column-gap:9px;
  align-items:center;
  padding:9px 17px;
  border-radius:22px;
  border:1px solid #cae7d8;
  background:#ddf8eb;
  color:#129b71;
}
.ml-sandbox-pipeline-chip span{
  grid-row:1 / 3;
  font-weight:1000;
}
.ml-sandbox-pipeline-chip strong{
  font-size:15px;
  line-height:1;
  font-weight:1000;
}
.ml-sandbox-pipeline-chip small{
  font-size:12px;
  line-height:1;
  font-weight:900;
}
.ml-sandbox-pipeline-chip.dark{
  background:#0b3329;
  border-color:#0b3329;
  color:#fff;
}
.ml-sandbox-pipeline-chip.blue{background:#e4efff;border-color:#bfd5ff;color:#2563eb;}
.ml-sandbox-pipeline-chip.yellow{background:#fff1d6;border-color:#f2d49b;color:#a05e12;}
.ml-sandbox-pipeline-chip.red{background:#ffe5e5;border-color:#f3bcbc;color:#c2393b;}
.ml-sandbox-table-wrap{
  width:100%;
  overflow-x:auto;
}
.ml-sandbox-table{
  width:100%;
  min-width:1120px;
  border-collapse:collapse;
  background:#fffdf7;
}
.ml-sandbox-table th{
  padding:15px 14px;
  background:#0b3329;
  color:rgba(255,255,255,.78);
  font-size:12px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.5px;
  text-align:left;
  text-transform:uppercase;
  white-space:nowrap;
}
.ml-sandbox-table td{
  padding:14px;
  border-bottom:1px solid #ece5d9;
  color:#20342e;
  font-size:14px;
  line-height:1.25;
  font-weight:900;
  vertical-align:middle;
  white-space:nowrap;
}
.ml-sandbox-table tr:hover td{
  background:#eef9f2;
}
.ml-sandbox-table td:first-child,
.ml-sandbox-table th:first-child{
  width:46px;
  text-align:center;
}
.ml-sandbox-table input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#0b3329;
}
.ml-sandbox-status,
.ml-sandbox-source,
.ml-sandbox-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#eef2f7;
  color:#475569;
  font-size:12px;
  font-weight:1000;
}
.ml-sandbox-status.active,
.ml-sandbox-status.done{
  background:#d9f8e7;
  color:#11835f;
}
.ml-sandbox-status.planning{
  background:#e6f0ff;
  color:#2563eb;
}
.ml-sandbox-status.watching{
  background:#fff2d8;
  color:#a05e12;
}
.ml-sandbox-status.idea{
  background:#f1f5f9;
  color:#475569;
}
.ml-sandbox-source{
  background:#e3f7ed;
  color:#17946d;
}
.ml-sandbox-avatar{
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  margin-right:8px;
  background:#e0f1ed;
  color:#52706a;
  border:1px solid #c9e1da;
}
.ml-sandbox-progress{
  display:inline-flex;
  width:82px;
  height:8px;
  margin-right:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e7ede9;
  vertical-align:middle;
}
.ml-sandbox-progress span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#24a778,#f2bd55);
}
.ml-sandbox-progress + small{
  color:#6f7d75;
  font-weight:1000;
}

@media(max-width:900px){
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
    grid-template-columns:1fr;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
    position:static;
    min-height:0;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div{
    min-height:0;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head::after{
    display:none;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
    grid-column:1;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
    position:static !important;
    width:100%;
    display:flex !important;
    overflow-x:auto;
    gap:10px !important;
    margin-bottom:14px;
    padding:2px 0 10px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
    flex:0 0 230px;
    background:#102a22 !important;
  }
  .ml-sandbox-kpi-grid{
    grid-template-columns:repeat(3,minmax(160px,1fr));
  }
  .ml-sandbox-filter-panel{
    grid-template-columns:repeat(3,minmax(160px,1fr));
  }
  .ml-sandbox-board-head{
    grid-template-columns:1fr;
  }
  .ml-sandbox-tabs,
  .ml-sandbox-action-icons{
    justify-content:flex-start;
    overflow-x:auto;
  }
}
@media(max-width:1400px) and (min-width:1181px){
  .ml-sandbox-kpi-grid{
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding-bottom:4px;
  }
  .ml-sandbox-kpi-card{
    flex:0 0 170px;
  }
  .ml-sandbox-filter-panel{
    grid-template-columns:repeat(3,minmax(160px,1fr));
  }
  .ml-sandbox-board-head{
    grid-template-columns:1fr;
  }
  .ml-sandbox-tabs,
  .ml-sandbox-action-icons{
    justify-content:flex-start;
    overflow-x:auto;
  }
}
@media(max-width:720px){
  .ml-focus-app[data-life-goals-v1="true"]{
    padding:10px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
    border-radius:22px !important;
    padding:16px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
    font-size:28px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
    padding:12px;
    border-radius:22px;
  }
  .ml-sandbox-top-actions{
    grid-template-columns:1fr;
    align-items:start;
    padding-bottom:14px;
  }
  .ml-sandbox-top-title{
    justify-content:flex-start;
    order:-1;
  }
  .ml-sandbox-top-title small{
    white-space:normal;
  }
  .ml-sandbox-bell{
    display:none;
  }
  .ml-sandbox-kpi-grid{
    display:flex;
    overflow-x:auto;
    gap:10px;
  }
  .ml-sandbox-kpi-card{
    flex:0 0 210px;
  }
  .ml-sandbox-filter-panel{
    grid-template-columns:1fr;
    padding:12px;
    border-radius:20px;
  }
  .ml-sandbox-bulk-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .ml-sandbox-bulk-row > div,
  .ml-sandbox-bulk-row button,
  .ml-sandbox-check-actions button{
    width:100%;
  }
  .ml-sandbox-check-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .ml-sandbox-board-head{
    padding:12px;
  }
  .ml-sandbox-tabs{
    width:100%;
  }
  .ml-sandbox-tabs button{
    flex:0 0 auto;
  }
  .ml-sandbox-table{
    min-width:980px;
  }
}

/* ===== LIFE CRM: aligned to crm.thayvinhtoan.vn source UI ===== */
.ml-focus-app[data-life-goals-v1="true"]{
  --crm-ivory:#fffaf0;
  --crm-cream:#f7f1e7;
  --crm-panel:#fffdf7;
  --crm-ink:#0f241f;
  --crm-muted:#6f7b74;
  --crm-line:rgba(23,32,27,.10);
  --crm-gold:#d6a14a;
  --crm-emerald:#0f8a68;
  --crm-sidebar:#0b1715;
  min-height:100vh;
  padding:18px !important;
  background:
    radial-gradient(circle at 15% 0%,rgba(214,161,74,.13),transparent 22rem),
    linear-gradient(135deg,#ebe6dc,#f7f1e7 48%,#e9e2d5) !important;
  color:var(--crm-ink);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
  grid-template-columns:300px minmax(0,1fr) !important;
  gap:18px !important;
  align-items:start;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
  position:sticky;
  top:18px;
  height:calc(100vh - 36px);
  min-height:0;
  display:flex !important;
  flex-direction:column !important;
  gap:18px !important;
  padding:18px !important;
  border:1px solid rgba(255,250,240,.13) !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at top left,rgba(214,161,74,.18),transparent 18rem),
    linear-gradient(160deg,#0b1715 0%,#132b26 48%,#08110f 100%) !important;
  box-shadow:0 28px 80px rgba(11,23,21,.32) !important;
  overflow:hidden;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head::before,
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head::after{
  display:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div{
  width:100%;
  min-height:0;
  display:grid;
  gap:10px;
  padding:18px 16px 22px;
  border:1px solid rgba(255,250,240,.12);
  border-radius:24px;
  background:rgba(255,250,240,.06);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div::before{
  content:"CRM";
  width:fit-content;
  padding:4px 8px;
  border:1px solid rgba(214,161,74,.34);
  border-radius:999px;
  background:rgba(214,161,74,.12);
  color:#f8dca3;
  font-size:10px;
  font-weight:950;
  letter-spacing:.15em;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
  max-width:190px;
  color:#fff8e9 !important;
  font-size:26px !important;
  font-weight:950 !important;
  line-height:1.16 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2::after{
  content:"";
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head p{
  margin:0 !important;
  max-width:220px;
  color:rgba(255,250,240,.68) !important;
  font-size:12px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
  width:100%;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  padding:0 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
  position:relative;
  width:100%;
  height:46px !important;
  min-height:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  padding:0 13px !important;
  border:1px solid transparent !important;
  border-radius:16px !important;
  background:transparent !important;
  color:rgba(255,250,240,.64) !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool:hover{
  transform:translateX(2px) !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool.active,
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool:hover{
  border-color:rgba(255,250,240,.14) !important;
  background:rgba(255,250,240,.10) !important;
  color:#fffaf0 !important;
}
.ml-blueprint-nav-accent{
  width:4px;
  height:22px;
  flex:0 0 4px;
  border-radius:999px;
  background:transparent;
}
.ml-blueprint-tool.active .ml-blueprint-nav-accent{
  background:linear-gradient(180deg,var(--crm-gold),var(--crm-emerald));
  box-shadow:0 0 22px rgba(214,161,74,.52);
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-icon{
  width:20px !important;
  height:20px !important;
  flex:0 0 20px !important;
  border-radius:0 !important;
  background:transparent !important;
  color:rgba(255,250,240,.55) !important;
  font-size:16px !important;
  box-shadow:none !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool.active .ml-blueprint-icon,
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool:hover .ml-blueprint-icon{
  color:#f4c56a !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool > div{
  min-width:0;
  flex:1;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool strong{
  color:inherit !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:850 !important;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-sidebar-profile{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:auto;
  padding:14px;
  border:1px solid rgba(255,250,240,.12);
  border-radius:22px;
  background:rgba(255,250,240,.08);
  color:rgba(255,250,240,.82);
}
.ml-life-sidebar-avatar{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg,#fff8e9,#d6a14a);
  color:#11241f;
  font-size:13px;
  font-weight:1000;
}
.ml-life-sidebar-profile strong{
  display:block;
  color:#fff8e9;
  font-size:13px;
  line-height:1.1;
  font-weight:950;
}
.ml-life-sidebar-profile small{
  display:block;
  margin-top:3px;
  color:rgba(255,250,240,.56);
  font-size:11px;
  line-height:1.25;
  font-weight:800;
}
.ml-life-sidebar-profile button{
  grid-column:1 / -1;
  width:100%;
  min-height:34px;
  border:1px solid rgba(244,197,106,.28);
  border-radius:999px;
  background:rgba(244,197,106,.12);
  color:#f4c56a;
  font-size:12px;
  font-weight:900;
}
.ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
  min-height:calc(100vh - 36px);
  padding:26px !important;
  border:1px solid rgba(23,32,27,.08);
  border-radius:30px !important;
  background:rgba(255,253,247,.92) !important;
  box-shadow:0 22px 70px rgba(23,32,27,.10) !important;
}
.ml-sandbox-crm-shell{
  gap:16px;
}
.ml-sandbox-top-actions{
  min-height:78px;
  border-bottom:1px solid rgba(23,32,27,.10);
}
.ml-sandbox-top-title strong{
  color:var(--crm-ink);
  font-size:24px;
}
.ml-sandbox-kpi-card{
  border-color:rgba(23,32,27,.10);
  background:linear-gradient(145deg,#fffdf7,#f8efe2);
  box-shadow:0 12px 28px rgba(23,32,27,.06);
}
.ml-sandbox-filter-panel,
.ml-sandbox-data-board{
  border-color:rgba(23,32,27,.10);
  background:rgba(255,253,247,.78);
  box-shadow:0 18px 38px rgba(23,32,27,.06);
}
.ml-sandbox-board-head{
  grid-template-columns:minmax(210px,270px) minmax(260px,1fr) minmax(360px,auto) auto;
}
.ml-sandbox-tabs{
  background:#f3eadc;
}
.ml-sandbox-tabs button.active,
.ml-sandbox-pipeline-chip.dark,
.ml-sandbox-table th{
  background:#0f241f;
}

@media(max-width:1400px) and (min-width:901px){
  .ml-sandbox-kpi-grid{
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding-bottom:4px;
  }
  .ml-sandbox-kpi-card{
    flex:0 0 150px;
  }
  .ml-sandbox-filter-panel{
    display:flex;
    overflow-x:auto;
    gap:12px;
  }
  .ml-sandbox-filter-panel button{
    flex:0 0 170px;
  }
  .ml-sandbox-board-head{
    grid-template-columns:1fr;
  }
  .ml-sandbox-tabs,
  .ml-sandbox-action-icons,
  .ml-sandbox-bulk-row > div{
    overflow-x:auto;
    justify-content:flex-start;
  }
  .ml-sandbox-bulk-row{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:900px){
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-block{
    grid-template-columns:1fr !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
    position:sticky;
    top:0;
    z-index:5;
    height:auto;
    min-height:0;
    flex-direction:row !important;
    align-items:center !important;
    overflow-x:auto;
    padding:10px !important;
    border-radius:22px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div{
    width:auto;
    min-width:150px;
    padding:10px 12px;
    border-right:1px solid rgba(255,250,240,.14);
    border-radius:16px;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head h2{
    font-size:18px !important;
    white-space:nowrap;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head p,
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-sidebar-profile{
    display:none;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-toolbar{
    width:auto;
    display:flex !important;
    overflow-x:auto;
    padding:0 !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
    flex:0 0 auto;
    min-width:140px;
    background:transparent !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-layout{
    min-height:0;
    padding:14px !important;
  }
}
@media(max-width:720px){
  .ml-focus-app[data-life-goals-v1="true"]{
    padding:10px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head{
    gap:10px !important;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-life-blueprint-head > div{
    min-width:132px;
  }
  .ml-focus-app[data-life-goals-v1="true"] .ml-blueprint-tool{
    min-width:128px;
    height:42px !important;
    min-height:42px !important;
  }
  .ml-sandbox-board-head{
    grid-template-columns:1fr;
  }
}
