/* CSS / Muse Control SPA: scoped Create/Bulk workspace. Round K: uses the global tokens from app.css (light + dark),
   no literal colors; secondary text >= 14px, table text 15px. */
.muse-workspace{--mw-blue:var(--accent);--mw-line:var(--border);--mw-muted:var(--muted);color:var(--text);min-width:0}
.muse-workspace .mw-top{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}
.muse-workspace .mw-eyebrow{display:block;font:600 14px/1.5 var(--mono);letter-spacing:.12em;color:var(--mw-blue);margin-bottom:6px}
.muse-workspace .mw-heading h1{font-size:30px;letter-spacing:-.03em;font-weight:650}
.muse-workspace .mw-heading p{font-size:16px;color:var(--mw-muted);margin-top:8px;max-width:640px}
.muse-workspace .mw-project{display:flex;align-items:flex-end;gap:10px;flex-shrink:0}
.muse-workspace .mw-project .field{margin:0;gap:6px;min-width:220px;max-width:340px}
.muse-workspace .mw-project .field label{font-size:14px;color:var(--mw-muted)}
.muse-workspace .mw-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:22px}
.muse-workspace .mw-history,.muse-workspace .mw-composer{min-width:0;background:var(--surface);border:1px solid var(--mw-line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.muse-workspace .mw-history-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--mw-line);flex-wrap:wrap}
.muse-workspace h2{font-size:19px;letter-spacing:-.02em}
.muse-workspace .mw-record-count{display:block;font-size:14px;color:var(--mw-muted);margin-top:4px}
.muse-workspace .mw-view-toggle{border:1px solid var(--mw-line);border-radius:8px;padding:3px;background:var(--surface-2)}
.muse-workspace .mw-view-toggle button{font-size:14px;min-height:36px;padding:5px 11px;border-radius:6px}
.muse-workspace .mw-view-toggle button.on{background:var(--surface);color:var(--mw-blue);box-shadow:var(--shadow)}
.muse-workspace .mw-status-tabs{display:flex;gap:24px;border-bottom:1px solid var(--mw-line);padding:0 22px;overflow:auto}
.muse-workspace .mw-status-tabs button{border:0;border-bottom:2px solid transparent;white-space:nowrap;background:none;min-height:48px;padding:12px 0;font-size:15px;font-weight:550;color:var(--mw-muted);cursor:pointer}
.muse-workspace .mw-status-tabs button:hover{color:var(--text)}
.muse-workspace .mw-status-tabs button.on{border-bottom-color:var(--mw-blue);color:var(--mw-blue)}
.muse-workspace .mw-search-row{display:flex;align-items:center;gap:12px;padding:16px 22px}
.muse-workspace .mw-search{min-width:80px;flex:1;max-width:440px}
.muse-workspace .mw-search-row .btn{margin-left:auto;flex-shrink:0}
.muse-workspace .input{border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text);min-height:42px;font-size:16px;padding:9px 12px;box-shadow:none}
.muse-workspace select.input{padding-right:30px}
.muse-workspace .input:focus{border-color:var(--accent);outline:3px solid var(--accent-soft);outline-offset:0}
.muse-workspace .btn{border-color:var(--border-strong);background:var(--surface);border-radius:8px;min-height:38px;font-size:15px;font-weight:600;padding:7px 12px;color:var(--text-2);white-space:nowrap}
.muse-workspace .btn:hover{background:var(--surface-2);border-color:var(--accent)}
.muse-workspace .btn.primary{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.muse-workspace .btn.primary:hover{background:var(--accent-bg-hover)}
.muse-workspace button:focus-visible,.muse-workspace a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.muse-workspace .mw-history-body .table-wrap{border:0;border-radius:0;overflow:auto}
.muse-workspace .mw-history-body .t{font-size:15px;min-width:820px}
.muse-workspace .mw-history-body .t th{background:var(--surface-3);border-top:1px solid var(--mw-line);border-bottom:1px solid var(--mw-line);font-size:14px;font-weight:600;letter-spacing:.01em;color:var(--text-2);padding:12px 14px}
.muse-workspace .mw-history-body .t td{padding:14px;border-bottom:1px solid var(--line);vertical-align:middle}
.muse-workspace .mw-job-id,.muse-workspace .mw-account{font-size:14px;color:var(--mw-muted);white-space:nowrap}
.muse-workspace .mw-job-title{display:block;text-align:left;font:500 15px/1.6 var(--font);color:var(--text);padding:0;border:0;background:none;cursor:pointer;min-width:160px;max-width:340px;overflow-wrap:anywhere}
.muse-workspace .mw-job-title:hover{color:var(--mw-blue);text-decoration:underline}
.muse-workspace .mw-when{font-size:14px;color:var(--mw-muted);white-space:nowrap}
.muse-workspace .mw-row-actions{display:flex;gap:6px;align-items:center}
.muse-workspace .mw-row-actions .btn{font-size:14px;min-height:34px;padding:5px 9px}
.muse-workspace .mw-row-actions .ic{width:15px;height:15px}
.muse-workspace .mw-history-body .badge{font-size:14px;padding:3px 8px;border-radius:6px;white-space:nowrap}
.muse-workspace .mw-history-body .cell-sub{font-size:14px;max-width:200px;margin-top:5px;color:var(--mw-muted);overflow-wrap:anywhere}
.muse-workspace .mw-history-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;font-size:14px;color:var(--mw-muted);border-top:1px solid var(--mw-line)}
.muse-workspace .mw-empty{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:9px;padding:64px 24px;color:var(--mw-muted);font-size:15px}
.muse-workspace .mw-empty>.ic{height:30px;width:30px;color:var(--border-strong);margin-bottom:9px}
.muse-workspace .mw-empty h3{color:var(--text);font-size:17px}
.muse-workspace .mw-composer{position:sticky;top:22px}
.muse-workspace .mw-composer-head{display:flex;gap:9px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--mw-line)}
.muse-workspace .mw-composer-head>.ic{color:var(--mw-blue);width:19px;height:19px}
.muse-workspace .mw-form-body{padding:22px;display:flex;flex-direction:column;gap:14px}
.muse-workspace .field{display:flex;flex-direction:column;gap:8px}
.muse-workspace .field>label{font-size:15px;font-weight:600;color:var(--text-2)}
.muse-workspace .mw-prompt{resize:vertical;min-height:190px;line-height:1.7}
.muse-workspace .mw-prompt[readonly]{background:var(--surface-2);color:var(--text-2)}
.muse-workspace .hint{font-size:14px;line-height:1.6;color:var(--mw-muted)}
.muse-workspace .mw-counter{font:14px var(--mono);color:var(--mw-muted);text-align:right;margin-top:-6px}
.muse-workspace .mw-reference-panel{border-top:1px solid var(--mw-line);padding-top:14px}
.muse-workspace .mw-reference-panel summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:15px;font-weight:600;color:var(--text-2);min-height:38px}
.muse-workspace .mw-reference-panel summary>.ic{height:16px;width:16px;color:var(--mw-muted)}
.muse-workspace .mw-reference-panel summary>span{margin-left:auto;font-size:14px}
.muse-workspace .mw-textlink{font-size:14px;color:var(--mw-blue)}
.muse-workspace .mw-refs{font-size:14px;margin-top:10px}
.muse-workspace .mw-refs .thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.muse-workspace .mw-refs .thumb{border-radius:6px;min-width:0}
.muse-workspace .mw-refs .thumb .cap{font-size:14px}
.muse-workspace .mw-refs .empty{padding:16px 8px}
.muse-workspace .mw-refs .empty h3{font-size:15px}
.muse-workspace .mw-refs .empty p{font-size:14px}
.muse-workspace .mw-form-footer{border-top:1px solid var(--mw-line);padding:18px 22px;background:var(--surface-3);display:flex;flex-direction:column;gap:12px}
.muse-workspace .mw-form-footer>p{font-size:14px;line-height:1.6;color:var(--mw-muted)}
.muse-workspace .mw-submit{width:100%;min-height:46px;font-size:16px}
.muse-workspace .mw-notice:empty,.muse-workspace .mw-submissions:empty{display:none}
.muse-workspace .mw-notice{font-size:15px;line-height:1.6;border:1px solid var(--info-border);background:var(--info-soft);color:var(--info);border-radius:8px;padding:10px 12px;overflow-wrap:anywhere}
.muse-workspace .mw-notice.mw-error{border-color:var(--bad-border);background:var(--bad-soft);color:var(--bad)}
.muse-workspace .mw-batch-preview{padding:0;margin:0;list-style:none;max-height:360px;overflow:auto;border:1px solid var(--mw-line);border-radius:8px}
.muse-workspace .mw-batch-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:11px;border-bottom:1px solid var(--line)}
.muse-workspace .mw-batch-row:last-child{border-bottom:0}
.muse-workspace .mw-batch-index{font:14px var(--mono);padding-top:2px;color:var(--mw-muted)}
.muse-workspace .mw-batch-prompt{font-size:15px;line-height:1.6;color:var(--text-2);overflow-wrap:anywhere}
.muse-workspace .mw-batch-state{display:block;font-size:14px;color:var(--mw-muted);margin-top:4px}
.muse-workspace .mw-batch-row.done .mw-batch-state{color:var(--ok)}
.muse-workspace .mw-batch-row.sending .mw-batch-state{color:var(--mw-blue)}
.muse-workspace .mw-inline-error{display:block;font-size:14px;line-height:1.5;color:var(--bad);margin-top:4px;overflow-wrap:anywhere;max-width:260px}
.muse-workspace .mw-legacy .list-toolbar{padding:16px;margin:0}
.muse-workspace .mw-legacy>.card{border:0;border-radius:0;box-shadow:none}
@media(min-width:1600px){.muse-workspace .mw-layout{grid-template-columns:minmax(0,1fr) 410px;gap:26px}}
@media(max-width:1150px){.muse-workspace .mw-layout{grid-template-columns:minmax(0,1fr) 340px;gap:16px}.muse-workspace .mw-top{align-items:flex-start}.muse-workspace .mw-project{flex-direction:column;align-items:stretch}.muse-workspace .mw-composer-head,.muse-workspace .mw-form-body,.muse-workspace .mw-form-footer{padding:18px}}
@media(max-width:900px){.muse-workspace .mw-layout{grid-template-columns:minmax(0,1fr)}.muse-workspace .mw-composer{position:static;order:-1}.muse-workspace .mw-top{align-items:flex-start;flex-direction:column;gap:18px}.muse-workspace .mw-project{flex-direction:row;align-items:flex-end;width:100%;flex-wrap:wrap}.muse-workspace .mw-project .field{flex:1;max-width:none}.muse-workspace .mw-prompt{min-height:150px}.muse-workspace .mw-form-body{gap:12px}.muse-workspace .mw-history-head{padding:18px}.muse-workspace .mw-heading h1{font-size:26px}}
@media(max-width:480px){.muse-workspace .mw-project{align-items:stretch;flex-direction:column}.muse-workspace .mw-project .field{min-width:0}.muse-workspace .mw-status-tabs{gap:18px;padding:0 16px}.muse-workspace .mw-search-row{padding:14px 16px;gap:8px}.muse-workspace .mw-search-row .btn{font-size:14px;padding:7px}.muse-workspace .mw-search-row .ic{display:none}.muse-workspace .mw-history-head{gap:12px}.muse-workspace .mw-history-footer{padding:14px 16px}.muse-workspace .mw-view-toggle{max-width:100%}}

/* ---- "Tạo video & Lịch sử" (old-site layout). Table text 15px, secondary >= 14px, sticky header, both themes. */
.mw-hist .mw-titlebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.mw-hist .mw-titlebar h1{font-size:24px;letter-spacing:-.02em;white-space:nowrap}
.mw-hist .mw-strip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;min-width:0;font-size:14px;color:var(--text-2);border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:5px 12px;min-height:38px}
.mw-hist .mw-strip b{color:var(--text)}
.mw-hist .mw-title-actions{display:flex;gap:8px;margin-left:auto}
.mw-hist .mw-title-actions .ic{width:16px;height:16px}
.mw-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--muted);flex:none}
.mw-dot.tone-ok{background:var(--ok)}.mw-dot.tone-bad{background:var(--bad)}.mw-dot.tone-warn{background:var(--warn)}.mw-dot.tone-accent{background:var(--accent)}.mw-dot.tone-muted{background:var(--border-strong)}
.mw-hist .mw-layout{grid-template-columns:minmax(0,1fr) 360px;gap:16px}
.mw-hist .mw-layout.no-panel{grid-template-columns:minmax(0,1fr)}.mw-hist .mw-layout.no-panel .mw-composer{display:none}
.mw-hist .mw-composer{top:calc(var(--hdr-h,64px) + 12px);max-height:calc(100vh - var(--hdr-h,64px) - 24px);overflow:auto}
.mw-hist .mw-composer-head{padding:14px 18px}.mw-hist .mw-composer-head h2{flex:1}.mw-hist .mw-close{width:36px;height:36px}
.mw-hist .mw-form-body{padding:16px 18px;gap:12px}.mw-hist .mw-form-footer{padding:14px 18px}
.mw-hist .mw-prompt{min-height:150px}
.mw-hist .mw-filters{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--surface)}
.mw-hist .mw-filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mw-hist .mw-search{flex:1 1 220px;max-width:360px;min-height:38px}
.mw-hist .input{min-height:38px;font-size:15px;padding:6px 10px}
.mw-hist select.input{width:auto;max-width:300px;padding-right:28px}
.mw-hist .mw-dates{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mw-hist .mw-date{width:auto;max-width:160px}
.mw-hist .btn.sm{min-height:36px;height:auto;padding:5px 10px;font-size:14px}
.mw-hist .mw-day.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-2)}
.mw-hist .mw-summary{margin-left:auto;display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;font-size:15px}
.mw-hist .mw-sum{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:2px 0;font:inherit;color:var(--text-2);cursor:pointer;white-space:nowrap}
.mw-hist .mw-sum b{color:var(--text);font-variant-numeric:tabular-nums}.mw-hist .mw-sum:hover{color:var(--accent)}
.mw-hist .mw-range{font-size:14px;white-space:nowrap}
.mw-hist .mw-del{display:flex;gap:6px;flex-wrap:wrap}.mw-hist .mw-del .ic{width:15px;height:15px}
.mw-hist .btn.danger:not(:disabled){color:var(--bad);border-color:var(--bad-border)}.mw-hist .btn.danger:not(:disabled):hover{background:var(--bad-soft)}
.mw-hist .mw-auto{align-items:center;font-size:14px;white-space:nowrap}.mw-hist .mw-auto input{margin:0}
.mw-hist .mw-interval-wrap{display:inline-flex;align-items:center;gap:6px}.mw-hist .mw-interval{width:74px}
.mw-hist .mw-cols{position:relative}.mw-hist .mw-cols>summary{list-style:none;cursor:pointer}.mw-hist .mw-cols>summary::-webkit-details-marker{display:none}
.mw-hist .mw-cols-menu{position:absolute;z-index:20;top:calc(100% + 6px);left:0;display:grid;gap:6px;min-width:220px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg)}
.mw-hist .mw-pager{display:flex;align-items:center;gap:4px;margin-left:auto}.mw-hist .mw-page-no{font-size:14px;color:var(--text-2);padding:0 6px;white-space:nowrap}
.mw-hist .mw-history-footer{display:flex;align-items:center;gap:10px;padding:10px 16px}
.mw-hist .mw-table-wrap{overflow:auto;max-height:calc(100vh - var(--hdr-h,64px) - 120px);min-height:240px}
.mw-hist .mw-table{width:100%;min-width:1100px;border-collapse:separate;border-spacing:0;font-size:15px}
.mw-hist .mw-table th{position:sticky;top:0;z-index:2;background:var(--surface-3);border-bottom:1px solid var(--border);font-size:14px;font-weight:600;color:var(--text-2);padding:10px 12px;white-space:nowrap;text-align:left}
.mw-hist .mw-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--text)}
.mw-hist .mw-table td.mw-sel,.mw-hist .mw-table th.mw-sel{width:40px;padding-right:0}
.mw-hist .mw-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent-bg);margin:3px 0 0}
.mw-hist .mw-table tr.st-failed td.c-status{box-shadow:inset 3px 0 0 var(--bad)}.mw-hist .mw-table tr.st-review td.c-status{box-shadow:inset 3px 0 0 var(--warn)}
.mw-hist .c-prompt{min-width:240px;max-width:420px}
.mw-hist .mw-job-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:left;font:500 15px/1.55 var(--font);color:var(--text);padding:0;border:0;background:none;cursor:pointer;overflow-wrap:anywhere;max-width:420px}
.mw-hist .mw-job-title:hover{color:var(--accent);text-decoration:underline}
.mw-hist .mw-job-id{border:0;background:none;padding:0;cursor:copy;color:var(--muted);font-size:14px;white-space:nowrap}.mw-hist .mw-job-id:hover{color:var(--accent)}
.mw-hist .mw-account,.mw-hist .mw-owner,.mw-hist .mw-project-name{font-size:14px;color:var(--text-2);white-space:nowrap}
.mw-hist .c-status{min-width:170px}.mw-hist .c-status .cell-sub{font-size:14px}
.mw-hist .mw-inline-error{color:var(--bad);font-size:14px;margin-top:4px;max-width:240px;overflow-wrap:anywhere}
.mw-hist .mw-inputs{display:flex;gap:4px;align-items:center}.mw-hist .mw-inputs img{width:38px;height:38px;object-fit:cover;border-radius:6px;border:1px solid var(--border);background:var(--surface-2)}
.mw-hist .mw-video video{display:block;width:180px;max-height:240px;border-radius:8px;background:var(--video-bg)}
.mw-hist .mw-video.big video{width:100%;max-height:none;aspect-ratio:9/16;object-fit:contain}
.mw-hist .mw-play .ic{width:14px;height:14px}
.mw-hist .mw-note{border:0;background:none;padding:0;text-align:left;font:15px/1.5 var(--font);color:var(--text);cursor:text;max-width:200px;overflow-wrap:anywhere}
.mw-hist .mw-note.empty{color:var(--placeholder);font-size:14px}.mw-hist .mw-note-input{min-width:160px}
.mw-hist .mw-time{font-size:14px;color:var(--text-2);white-space:nowrap;line-height:1.55}
.mw-hist .c-act{white-space:nowrap}.mw-hist .mw-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
.mw-hist .mw-row-actions .btn{min-height:34px;height:auto;padding:4px 9px;font-size:14px}.mw-hist .mw-row-actions .btn.icon{width:34px;padding:0}.mw-hist .mw-row-actions .ic{width:15px;height:15px}
.mw-hist .mw-del-one:hover{color:var(--bad);border-color:var(--bad-border)}
.mw-hist .mw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;padding:16px}
.mw-hist .mw-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);display:flex;flex-direction:column;min-width:0}
.mw-hist .mw-card-media{background:var(--video-bg);aspect-ratio:9/16;display:flex;align-items:center;justify-content:center;max-height:420px}
.mw-hist .mw-card-media .mw-video{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.mw-hist .mw-card-media .mw-play{background:var(--surface)}
.mw-hist .mw-card-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--on-media);text-align:center;padding:12px}.mw-hist .mw-card-placeholder .muted{color:var(--on-media);opacity:.8}
.mw-hist .mw-card-body{padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.mw-hist .mw-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mw-hist .mw-list{list-style:none;margin:0;padding:0}
.mw-hist .mw-item{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.mw-hist .mw-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mw-hist .mw-item-head .mw-job-id{margin-left:auto}
.mw-hist .mw-item .mw-job-title{max-width:none}
@media(max-width:1150px){.mw-hist .mw-layout{grid-template-columns:minmax(0,1fr) 320px}.mw-hist .mw-summary{margin-left:0;flex-basis:100%}}
@media(max-width:900px){.mw-hist .mw-layout,.mw-hist .mw-layout.no-panel{grid-template-columns:minmax(0,1fr)}.mw-hist .mw-composer{position:static;order:-1;max-height:none}}
@media(max-width:760px){
  .mw-hist .mw-titlebar h1{font-size:20px}.mw-hist .mw-title-actions{display:none}
  .mw-hist .mw-composer{display:none}.mw-hist .mw-filters-home{display:none}
  .mw-hist .mw-history{border-radius:10px}
  .mw-hist .mw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  .mw-hist .mw-history-footer{flex-wrap:wrap;padding:10px 12px}
  .mw-hist .mw-video video{width:100%;max-height:360px}
}
/* sheets reuse the form / filters on phones */
.msheet .mw-form,.msheet .mw-filters{display:flex;flex-direction:column;gap:12px}
.msheet .mw-composer-head{display:none}
.msheet .mw-form-body,.msheet .mw-form-footer{display:flex;flex-direction:column;gap:12px}
.msheet .mw-filter-row{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.msheet .mw-filters .input,.msheet .mw-filters select.input{width:100%;max-width:none;min-height:44px;font-size:16px}
.msheet .mw-dates{display:flex;flex-wrap:wrap;gap:8px}.msheet .mw-dates .mw-date{flex:1 1 40%;min-width:0;width:auto}.msheet .mw-dates>.muted{display:none}.msheet .mw-dates .mw-day{flex:1 1 28%}
.msheet .mw-interval-wrap{display:flex;align-items:center;gap:8px}.msheet .mw-interval-wrap .mw-interval{width:100px;flex:none}.msheet .mw-auto{display:flex;align-items:center;gap:8px}
.msheet .mw-summary{margin:0;flex-direction:row;flex-wrap:wrap}.msheet .mw-sum{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font:inherit;color:var(--text-2)}
.msheet .mw-del{display:grid;grid-template-columns:1fr 1fr;gap:8px}.msheet .mw-del .btn:first-child{grid-column:1/-1}
.msheet .mw-pager{display:flex;align-items:center;gap:6px}.msheet .mw-cols{display:none}
.msheet .mw-prompt{min-height:160px;width:100%}
.msheet .mw-notice:empty{display:none}.msheet .mw-notice{font-size:15px;border:1px solid var(--info-border);background:var(--info-soft);color:var(--info);border-radius:8px;padding:10px 12px}.msheet .mw-notice.mw-error{border-color:var(--bad-border);background:var(--bad-soft);color:var(--bad)}
.msheet .mw-submit{width:100%;min-height:48px}.msheet .mw-refs .thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.msheet .mw-reference-panel summary{display:flex;align-items:center;gap:7px;min-height:40px;font-weight:600}.msheet .mw-reference-panel summary>span{margin-left:auto}
.msheet .mw-counter{font:14px var(--mono);color:var(--muted);text-align:right}
/* sticky action column: actions stay visible when the table scrolls sideways */
.mw-hist .mw-table th.c-act,.mw-hist .mw-table td.c-act{position:sticky;right:0;z-index:1;background:var(--surface);box-shadow:-1px 0 0 var(--line)}
.mw-hist .mw-table th.c-act{z-index:3;background:var(--surface-3)}
.mw-hist .mw-table tbody tr:hover td{background:var(--row-hover)}
.mw-hist .mw-table{min-width:900px}.mw-hist .c-prompt{min-width:240px}.mw-hist .c-prompt .mw-job-id{display:block;margin-top:4px}.mw-hist .c-video,.mw-hist .c-inputs{white-space:nowrap}
.mw-hist .c-note{min-width:130px}
@media(max-width:760px){.mw-hist .mw-strip{flex-basis:100%;order:3}}
/* Provider columns, "Lọc thêm" and the per-provider summary lines (tokens only; text >= 14px). */
.mw-hist .mw-more{position:relative}
.mw-hist .mw-more>summary{list-style:none;cursor:pointer}.mw-hist .mw-more>summary::-webkit-details-marker{display:none}
.mw-hist .mw-more[open]{flex-basis:100%;order:10}
.mw-hist .mw-more[open]>summary{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-2)}
.mw-hist .mw-more-count{font-variant-numeric:tabular-nums}
.mw-hist .mw-more-body{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.mw-hist .mw-more-body select.input{max-width:220px}
.mw-hist .mw-short{align-items:center;gap:6px;font-size:14px;white-space:nowrap}.mw-hist .mw-short input{margin:0}
.mw-hist .mw-summary.multi{flex-direction:column;align-items:flex-start;gap:4px}
.mw-hist .mw-sum-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.mw-hist .mw-sum-modes,.mw-hist .mw-sum-acc{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--text-2);white-space:nowrap}
.mw-hist .mw-sum-modes b,.mw-hist .mw-sum-acc b{color:var(--text);font-variant-numeric:tabular-nums}
.mw-hist .mw-sum-modes .mode-pill:first-child{margin-left:0}
.mw-hist .c-provider,.mw-hist .c-duration,.mw-hist .c-logo,.mw-hist .c-language{white-space:nowrap}
.mw-hist .c-model{min-width:120px}
.mw-hist .mw-item-facts{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.msheet .mw-more{display:block}.msheet .mw-more>summary{list-style:none}.msheet .mw-more-body{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:10px}
.msheet .mw-more-body select.input{max-width:none}
.msheet .mw-summary.multi{flex-direction:column;align-items:flex-start}.msheet .mw-sum-line{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.muse-workspace .mw-form-note{resize:vertical;min-height:56px}
.muse-workspace .mw-upload-list{display:flex;flex-direction:column;gap:6px;margin:8px 0;font-size:14px}
.muse-workspace .mw-upload-list:empty{display:none}
.muse-workspace .mw-upload-item{display:flex;gap:8px;align-items:center;min-width:0}
.muse-workspace .mw-upload-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.muse-workspace .mw-row-actions{flex-wrap:wrap}
