/* ===== V57 Stable Popup / Reset Filter ===== */
.ml-v53-comment-btn,
.ml-v53-comment-mini,
.ml-v54-sub-audio-open,
.ml-v54-add-sub-audio,
.ml-task-actions [data-action="toggle-detail"]{display:none!important;}

.ml-v57-ready .ml-task-item{cursor:pointer;}
.ml-v57-ready .ml-task-item button,
.ml-v57-ready .ml-task-item input,
.ml-v57-ready .ml-task-item select,
.ml-v57-ready .ml-task-item textarea,
.ml-v57-ready .ml-task-item audio,
.ml-v57-ready .ml-task-item a{cursor:auto;}

.ml-v57-modal .ml-v55-panel{max-width:min(1180px, calc(100vw - 36px)); border-radius:28px; overflow:hidden; box-shadow:0 34px 90px rgba(15,23,42,.22);}
.ml-v57-modal .ml-v55-head{background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(255,247,237,.92)); border-bottom:1px solid rgba(148,163,184,.22);}
.ml-v57-modal .ml-v55-eyebrow{letter-spacing:.08em; text-transform:uppercase; color:#94a3b8; font-size:11px;}
.ml-v57-modal .ml-v55-title-input{font-size:28px; font-weight:900; border:0!important; background:transparent!important; padding:4px 0!important; box-shadow:none!important;}
.ml-v57-modal .ml-v55-body{gap:18px; background:linear-gradient(180deg,#fff,#f8fafc);}
.ml-v57-modal .ml-v55-side,.ml-v57-modal .ml-v55-section{border:1px solid rgba(226,232,240,.9); border-radius:22px; background:rgba(255,255,255,.86); box-shadow:0 18px 50px rgba(15,23,42,.06);}
.ml-v57-modal .ml-v55-section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px;}
.ml-v57-modal .ml-v55-section-head small{color:#94a3b8; font-size:12px;}

.ml-v57-compose{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end;}
.ml-v57-compose textarea{width:100%; min-height:72px; max-height:160px; resize:vertical; border:1px solid #dbe3ef; border-radius:18px; padding:14px 16px; outline:none; background:#fff; font-weight:700; color:#1f2937; box-shadow:inset 0 1px 0 rgba(15,23,42,.03);}
.ml-v57-compose textarea:focus{border-color:#fb923c; box-shadow:0 0 0 4px rgba(251,146,60,.12);}
.ml-v57-compose-actions{display:flex; gap:8px; align-items:center;}
.ml-v57-icon,.ml-v57-send,.ml-v57-sub-record,.ml-v57-sub-open,.ml-v57-record-new-sub{border:0; border-radius:999px; min-width:38px; height:38px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; font-weight:900; background:#f8fafc; color:#334155; box-shadow:0 8px 24px rgba(15,23,42,.08); cursor:pointer;}
.ml-v57-icon{background:#071225;color:#fff;}
.ml-v57-icon.danger,.ml-v57-sub-record.recording,.ml-v57-record-new-sub.recording{background:#fee2e2;color:#991b1b;}
.ml-v57-send{background:#fb6a18;color:#fff; padding:0 18px;}

.ml-v57-comment{border:1px solid rgba(226,232,240,.9); border-radius:18px; padding:12px; background:linear-gradient(180deg,#fff,#f8fafc); margin-bottom:10px;}
.ml-v57-comment-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px;}
.ml-v57-comment-head strong{font-size:14px;color:#0f172a;}
.ml-v57-comment-head small{font-size:12px;color:#94a3b8; margin-left:8px;}
.ml-v57-comment-head button,.ml-v57-sub-audio-item button{border:0;border-radius:999px;background:#fee2e2;color:#991b1b;width:30px;height:30px;cursor:pointer;}
.ml-v57-comment-text{font-weight:650;color:#334155;line-height:1.55;word-break:break-word;}
.ml-v57-comment-text a{color:#2563eb;text-decoration:none;font-weight:800;}
.ml-v57-audio-card,.ml-v57-sub-audio-item{display:grid; gap:8px; border-radius:16px; padding:10px; background:#f1f5f9; margin-top:8px;}
.ml-v57-audio-card audio,.ml-v57-sub-audio-item audio{width:100%; height:38px;}
.ml-v57-rate{display:flex; gap:6px; flex-wrap:wrap;}
.ml-v57-rate button{border:0;border-radius:999px;background:#fff;color:#64748b;padding:5px 9px;font-weight:800;cursor:pointer;}
.ml-v57-rate button.active{background:#fff7ed;color:#c2410c;}
.ml-v57-empty{border:1px dashed #cbd5e1;border-radius:16px;padding:14px;color:#94a3b8;font-weight:750;background:#f8fafc;}
.ml-v57-empty.small{font-size:12px;padding:10px;}

.ml-v57-modal .ml-v55-sub-row{display:grid!important; grid-template-columns:auto minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:10px 12px; border-radius:16px; background:#fff; border:1px solid #e2e8f0; margin-bottom:8px;}
.ml-v57-modal .ml-v55-sub-row input[data-v55-sub-title]{min-width:0; border:0; background:#f8fafc; border-radius:12px; padding:9px 12px; font-weight:800; outline:none;}
.ml-v57-modal .ml-v55-sub-row input[data-v55-sub-title]:focus{background:#fff7ed; box-shadow:0 0 0 3px rgba(251,146,60,.14);}
.ml-v57-sub-actions{display:flex;gap:6px;align-items:center;}
.ml-v57-sub-record,.ml-v57-sub-open,.ml-v57-record-new-sub{min-width:30px;width:30px;height:30px;padding:0;font-size:13px;box-shadow:none;background:#f1f5f9;}
.ml-v57-sub-record{background:#071225;color:#fff;}
.ml-v57-sub-open.has{background:#ecfeff;color:#0e7490;position:relative;}
.ml-v57-sub-open b{font-size:10px;margin-left:2px;}
.ml-v57-sub-audio-panel{grid-column:1/-1;border:1px solid #dbeafe;border-radius:16px;padding:10px;background:#eff6ff;margin-top:4px;}
.ml-v57-sub-audio-panel.hidden{display:none!important;}
.ml-v57-sub-audio-item{background:#fff;margin:0 0 8px 0; border:1px solid #dbeafe;}
.ml-v57-sub-audio-item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.ml-v57-sub-audio-item strong{font-size:13px;color:#1e3a8a;}
.ml-v57-sub-audio-item small{color:#64748b;font-size:12px;}
.ml-v57-modal .ml-v55-add-sub-row{display:grid!important; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center;}
.ml-v57-modal #mlV55NewSub{border:1px solid #fed7aa; border-radius:16px; padding:12px 14px; font-weight:800; outline:none;}
.ml-v57-modal #mlV55NewSub:focus{box-shadow:0 0 0 4px rgba(251,146,60,.12);}

.ml-v57-modal .ml-v55-compose #mlV55CommentLink,
.ml-v57-modal #mlV55AudioPreviewWrap{display:none!important;}

#mlV57Toast,#mlV55Toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(16px);opacity:0;pointer-events:none;background:#0f172a;color:#fff;padding:10px 14px;border-radius:999px;font-weight:800;box-shadow:0 16px 50px rgba(15,23,42,.22);z-index:2147483647;transition:.18s ease;}
#mlV57Toast.show,#mlV55Toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
