/* FOJI 3.0「素材」：上传面板、素材卡的处理状态、广告制作页的贴链接、边播边拆页（91_material.py）。不用斜体，强调只靠加粗。 */
.mt-up-root{font-style:normal}
.mt-scrim{position:fixed;inset:0;z-index:1000;background:rgba(14,10,24,.36)}
.mt-up{position:fixed;z-index:1001;left:50%;top:50%;transform:translate(-50%,-50%);width:760px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 64px rgba(20,10,40,.22);color:#151515}
.mt-up[hidden],.mt-scrim[hidden],.mt-mini[hidden]{display:none}
.mt-up-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 0}
.mt-up-head h2{margin:0;font-size:17px;line-height:24px;font-weight:600}
.mt-icon{display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#6f6a78;cursor:pointer}
.mt-icon:hover{background:#f3f1f6}
.mt-up-body{padding:16px 22px;overflow:auto;min-height:0}
.mt-drop{width:100%;display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px 16px;border:1.5px dashed #cfc6dc;border-radius:12px;background:#fbfaff;cursor:pointer;font:inherit;color:inherit;transition:background .15s,border-color .15s}
.mt-drop:hover,.mt-up:has(.mt-drop:hover){border-color:#7a43a8}
.mt-drop:hover{background:#f4eeff}
.mt-drop-ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f4eeff;color:#7a43a8;margin-bottom:6px}
.mt-drop b{font-size:15px;line-height:22px;font-weight:600}
.mt-drop small{font-size:12px;line-height:18px;color:#6f6a78}
.mt-opts{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:12px;margin-top:14px}
.mt-opts label{display:flex;flex-direction:column;gap:4px;min-width:0}
.mt-opts label>span:first-child{font-size:12px;color:#6f6a78}
.mt-opts select,.mt-opts input:not([type=checkbox]){height:36px;border:1px solid #e3dfe8;border-radius:8px;padding:0 10px;background:#fff;font:inherit;font-size:13px;color:#151515;min-width:0}
.mt-auto-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;height:36px;border:1px solid #e3dfe8;border-radius:8px;padding:0 10px;font-size:13px}
.mt-auto-row input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.mt-switch{flex:none;width:32px;height:18px;border-radius:999px;background:#d6d1dd;position:relative;transition:background .15s}
.mt-switch:after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s}
.mt-auto-row input:checked+.mt-switch{background:#7a43a8}
.mt-auto-row input:checked+.mt-switch:after{left:16px}
.mt-q-head{display:flex;justify-content:space-between;gap:12px;margin:18px 0 8px;font-size:12px;color:#6f6a78}
.mt-q{list-style:none;margin:0;padding:0;border:1px solid #ece8f1;border-radius:12px;overflow:hidden}
.mt-q-row{display:grid;grid-template-columns:44px minmax(0,1fr) 220px 28px;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid #ece8f1}
.mt-q-row:first-child{border-top:0}
.mt-thumb{width:44px;height:56px;border-radius:6px;background:#eeebf3;display:grid;place-items:center;color:#8a8494;overflow:hidden}
.mt-thumb img{width:100%;height:100%;object-fit:cover}
.mt-q-main{display:flex;flex-direction:column;min-width:0}
.mt-q-main b{font-weight:500;font-size:13px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mt-q-main small{font-size:12px;color:#8a8494}
.mt-steps{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.mt-steps span{display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:16px;color:#b0aab8}
.mt-steps span.done{color:#2f8a3a}.mt-steps span.now{color:#7a43a8;font-weight:500}
.mt-steps em{font-style:normal;color:#d5d0dc;font-size:11px}
.mt-q-res{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;line-height:18px;text-align:right;min-width:0}
.mt-q-res a{color:#7a43a8;font-weight:500;text-decoration:none}
.mt-q-res .muted{color:#8a8494}
.mt-bar{display:block;width:100%;height:4px;border-radius:2px;background:#eee;overflow:hidden}
.mt-bar i{display:block;height:100%;background:#7a43a8;transition:width .3s}
.mt-err{color:#c0392b;font-size:12px;line-height:18px}
.mt-up-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;border-top:1px solid #ece8f1}
.mt-up-foot small{font-size:12px;line-height:18px;color:#6f6a78}
.mt-mini{position:fixed;left:84px;bottom:18px;z-index:999;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid #e3dfe8;border-radius:999px;background:#fff;box-shadow:0 6px 20px rgba(20,10,40,.12);font:inherit;font-size:13px;color:#151515;cursor:pointer}
.mt-mini svg{color:#2f8a3a}.mt-mini.is-busy svg{color:#7a43a8}
@keyframes mt-spin{to{transform:rotate(360deg)}}
.mt-steps .now svg,.mt-mini.is-busy svg,.mt-badge svg,.mt-prog .now svg,.mt-loading svg,.mt-drop2.is-busy .mt-drop-ic svg{animation:mt-spin 1s linear infinite}
.mt-badge svg{animation-duration:1s}
.mt-badge:not(:has(svg)) svg{animation:none}
body.mt-dragging::after{content:"松手就开始上传";position:fixed;inset:0;z-index:998;display:grid;place-items:center;background:rgba(122,67,168,.08);border:2px dashed #7a43a8;color:#7a43a8;font-size:18px;font-weight:600;pointer-events:none}

/* 素材页的卡 */
.mt-head-acts{display:flex;gap:8px;align-items:center}
.lib-asset-preview{position:relative}
.mt-badge{position:absolute;left:8px;bottom:8px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.92);color:#6f6a78;font-size:12px;line-height:18px;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.mt-badge.is-done{background:#f4eeff;color:#7a43a8}
.mt-badge.is-off{color:#8a8494}
.mt-asset-video{position:relative;display:block;width:100%;height:100%;background:#eeebf3}
.mt-asset-video img,.mt-asset-video video{width:100%;height:100%;object-fit:cover;display:block}
.mt-play{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff}

/* 广告制作页：写脚本 / 贴链接拆片 */
.mt-seg{display:inline-flex;align-self:flex-start;gap:2px;padding:3px;margin-bottom:10px;border-radius:10px;background:rgba(0,0,0,.06)}
.mt-seg button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:13px;color:#6f6a78;cursor:pointer}
.mt-seg button[aria-selected=true]{background:#fff;color:#151515;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.maker-paste.mt-hide-script>textarea,.maker-paste.mt-hide-script>.maker-script-tools{display:none}
.maker-paste:has(.mt-seg){display:flex;flex-direction:column}
.maker-paste.mt-hide-script{height:auto;min-height:252px}
.mt-linkpane{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.mt-linkpane[hidden]{display:none}
.mt-linkbox{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px;border:1.5px solid #7a43a8;border-radius:12px;background:#fff;color:#7a43a8}
.mt-linkbox input{flex:1;min-width:0;height:36px;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:#151515}
.mt-linkbox .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.mt-link-msg:empty{display:none}
.mt-link-msg{margin:0;font-size:12px;line-height:18px;color:#6f6a78}
.mt-scope{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.mt-scope>div{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:#fff;font-size:12px;line-height:18px;color:#6f6a78}
.mt-scope b{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#151515}
.mt-scope>div:first-child b svg{color:#2f8a3a}.mt-scope>div:last-child b svg{color:#b7791f}
.mt-tile svg{color:#7a43a8}

/* 边播边拆页 */
.mt-page{padding:28px 32px 48px;max-width:1240px;color:#151515}
.mt-page-head{margin-bottom:20px}
.mt-back{font-size:13px;color:#6f6a78;text-decoration:none}
.mt-page-head h1{margin:6px 0 2px;font-size:24px;line-height:32px;font-weight:600}
.mt-page-head p{margin:0;font-size:13px;color:#6f6a78}
.mt-loading{display:flex;align-items:center;gap:10px;color:#6f6a78;padding:40px 0}
.mt-split{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}
.mt-player{display:flex;flex-direction:column;gap:10px}
.mt-info{display:flex;flex-direction:column;gap:12px;margin-top:2px}.mt-info:empty{display:none}
.mt-card{background:#fff;border:1px solid #ece8f1;border-radius:14px}
.mt-card h3{margin:0;padding:12px 16px 0;font-size:13px;line-height:20px;font-weight:600}
.mt-vbox{aspect-ratio:9/16;max-height:600px;border-radius:14px;overflow:hidden;background:#000;display:grid;place-items:center}
.mt-vbox video,.mt-vbox img{width:100%;height:100%;object-fit:contain;display:block}
.mt-vbox iframe{width:100%;height:100%;border:0;background:#000}
.mt-vbox.is-empty{background:#f3f1f6;color:#8a8494;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px}
.mt-tl-bar{position:relative;display:flex;height:20px;border-radius:6px;overflow:hidden;background:#eee;cursor:pointer}
.mt-tl-bar i{height:100%;border-right:1px solid #fff}
.mt-tl-head{position:absolute;top:0;bottom:0;left:0;width:2px;background:#151515}
.mt-legend{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:8px;font-size:11px;color:#6f6a78}
.mt-legend span{display:inline-flex;align-items:center;gap:4px}.mt-legend i{width:8px;height:8px;border-radius:2px}
.mt-src{display:flex;align-items:center;gap:6px;font-size:12px;color:#6f6a78}
.mt-src a{color:#7a43a8}
.mt-panel{background:#fff;border:1px solid #ece8f1;border-radius:14px;min-width:0;position:sticky;top:16px;height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden}
.mt-panel-head{padding:18px 20px;border-bottom:1px solid #ece8f1}
.mt-panel-head h2{margin:0;font-size:18px;line-height:26px;font-weight:600}
.mt-prog{display:flex;flex-wrap:wrap;gap:14px;margin-top:6px;font-size:12px;color:#8a8494}
.mt-prog span{display:inline-flex;align-items:center;gap:4px}
.mt-prog .done{color:#2f8a3a}.mt-prog .now{color:#7a43a8}
.mt-prog-meta{color:#6f6a78}
.mt-one{margin:0;padding:14px 20px 4px;font-size:15px;line-height:24px;font-weight:600}
.mt-tags{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px 10px;margin:0;padding:10px 16px 14px;font-size:13px;line-height:22px}
.mt-tags dt{color:#8a8494}.mt-tags dd{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.mt-chip{display:inline-block;padding:0 8px;border-radius:999px;background:#f3f1f6;color:#3a3540;font-size:12px;line-height:20px;white-space:nowrap}
.mt-chip.is-v{background:#f4eeff;color:#7a43a8}
.mt-ana{display:flex;flex-direction:column;gap:10px;padding:10px 16px 14px}
.mt-ana>div{padding:0}
.mt-ana>div.is-warn{padding:8px 10px;border-radius:8px;background:#fffaf2}
.mt-ana b{display:block;font-size:12px;font-weight:600;color:#6f6a78;margin-bottom:4px}
.mt-ana p{margin:0;font-size:13px;line-height:20px}

.mt-shots{list-style:none;margin:0;padding:6px 8px;flex:1;min-height:0;overflow:auto;position:relative}
.mt-shot{display:grid;grid-template-columns:26px 54px minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .15s}
.mt-shot:hover{background:#f7f5f9}
.mt-shot.is-cur{background:#f4eeff}
.mt-shot-n{padding-top:2px;font-size:12px;color:#8a8494;font-variant-numeric:tabular-nums}
.mt-shot img,.mt-shot-ph{width:54px;height:72px;border-radius:6px;object-fit:cover;background:#eeebf3;display:block}
.mt-shot-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8a8494;font-variant-numeric:tabular-nums}
.mt-shot-pic{margin:4px 0 0;font-size:13px;line-height:20px}
.mt-shot-cap{display:inline-block;margin:4px 0 0;padding:3px 8px;border-radius:6px;background:#f7f5f9;font-size:12px;line-height:18px;color:#3a3540}
.mt-shot.is-wait .mt-shot-pic{height:14px;width:70%;border-radius:4px;background:linear-gradient(90deg,#eeebf3,#f7f5f9,#eeebf3);background-size:200% 100%;animation:mt-shimmer 1.2s linear infinite}
@keyframes mt-shimmer{to{background-position:-200% 0}}
.mt-acts{display:flex;gap:8px;padding:14px 20px;border-top:1px solid #ece8f1}
.mt-acts .btn{display:inline-flex;align-items:center;gap:6px}
.mt-note{margin:0;padding:16px 20px;font-size:13px;line-height:20px;color:#6f6a78}
.mt-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px 20px}
.mt-empty p{margin:0;font-size:13px}.mt-empty small{font-size:12px;color:#8a8494}
.mt-drop2{display:flex;flex-direction:column;align-items:center;gap:6px;margin:20px;padding:32px 20px;border:1.5px dashed #cfc6dc;border-radius:12px;background:#fbfaff;text-align:center}
.mt-drop2.is-over{border-color:#7a43a8;background:#f4eeff}
.mt-drop2 b{font-size:15px;font-weight:600}
.mt-drop2 p{margin:0 0 6px;max-width:440px;font-size:12px;line-height:18px;color:#6f6a78}
@media (max-width:760px){.mt-split{grid-template-columns:minmax(0,1fr)}.mt-panel{position:static;height:auto}.mt-shots{max-height:70vh}.mt-vbox{max-height:70vh}.mt-opts{grid-template-columns:1fr}.mt-q-row{grid-template-columns:44px minmax(0,1fr) 28px}.mt-q-res{grid-column:2/3;align-items:flex-start;text-align:left}.mt-scope{grid-template-columns:1fr}.mt-page{padding:20px 16px}}
