/* 素材表现 · 交付成片首页与上传统计。颜色只表达一件事：红=异常，蓝=待你处理，黄=提醒，绿=好消息；其余一律中性。 */
#mpRoot{--mh-bad:#ff6b81;--mh-todo:#60a5fa;--mh-warn:#f5c451;--mh-good:#4ade80;--mh-on-accent:#0b0c10}
body[data-theme="light"] #mpRoot{--mh-bad:#be123c;--mh-todo:#1d4ed8;--mh-warn:#a16207;--mh-good:#15803d;--mh-on-accent:#fff}

#mpRoot .mh-btn-primary{background:var(--mp-cyan);border-color:var(--mp-cyan);color:var(--mh-on-accent);font-weight:700}
#mpRoot .mh-btn-primary:hover:not(:disabled){color:var(--mh-on-accent);filter:brightness(1.08)}

#mpRoot .mh-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--mp-border)}
#mpRoot .mh-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;flex:1 1 auto}
#mpRoot .mh-project{width:220px;min-width:0;flex:none}
#mpRoot .mh-account{width:200px;min-width:0;flex:none}
body[data-theme="light"] #mpRoot select.mp-control{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 12px center !important;background-size:12px 12px !important}
/* Dropdown arrow sits inside the box with room to breathe instead of touching the border. */
#mpRoot select.mp-control{-webkit-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238b8d9b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px;cursor:pointer}
#mpRoot .mh-dates{display:flex;align-items:center;gap:8px}
#mpRoot .mh-update{display:flex;align-items:center;gap:10px}

#mpRoot .mh-alerts{display:grid;gap:6px;margin:12px 0 2px}
#mpRoot .mh-alert{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;font-size:13px;border:1px solid color-mix(in srgb,var(--mh-c) 35%,var(--mp-border));background:color-mix(in srgb,var(--mh-c) 9%,var(--mp-panel))}
#mpRoot .mh-alert strong{color:color-mix(in srgb,var(--mh-c) 80%,var(--mp-text));font-weight:700}
#mpRoot .mh-alert.is-bad{--mh-c:var(--mh-bad)}
#mpRoot .mh-alert.is-todo{--mh-c:var(--mh-todo)}
#mpRoot .mh-alert.is-warn{--mh-c:var(--mh-warn)}
#mpRoot .mh-alert.is-good{--mh-c:var(--mh-good)}
#mpRoot .mh-dot{width:8px;height:8px;border-radius:50%;background:var(--mh-c);flex:none}
#mpRoot .mh-alert-detail{color:var(--mp-muted);font-size:12px}
#mpRoot .mh-alert-go{margin-left:auto;color:var(--mp-muted);font-size:12px}
#mpRoot .mh-alert.is-clickable{cursor:pointer}
#mpRoot .mh-alert.is-clickable:hover .mh-alert-go{color:var(--mp-text)}

#mpRoot .mh-scopes{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:14px 0 10px}
#mpRoot .mh-scope{border:1px solid var(--mp-border);background:transparent;color:var(--mp-muted);border-radius:999px;padding:6px 13px;font:inherit;font-size:12px;cursor:pointer}
#mpRoot .mh-scope.is-active{background:var(--mp-text);border-color:var(--mp-text);color:var(--mp-panel);font-weight:700}
#mpRoot .mh-search{flex:0 1 240px;min-width:180px;margin-left:8px}
#mpRoot .mh-rate{margin-left:auto;color:var(--mp-muted);font-size:12px}

#mpRoot .mh-table{min-width:980px}
#mpRoot .mh-row{cursor:pointer}
#mpRoot .mh-row.is-open td{background:color-mix(in srgb,var(--mp-cyan) 5%,var(--mp-panel))}
#mpRoot .mh-name{display:flex;align-items:center;gap:10px;min-width:280px}
#mpRoot .mh-name>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
#mpRoot .mh-name .mp-file-name{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mpRoot .mh-cover{width:34px;height:46px;border-radius:4px;background:var(--mp-bg);border:1px solid var(--mp-border);overflow:hidden;flex:none}
#mpRoot .mh-cover img{width:100%;height:100%;object-fit:cover;display:block}
#mpRoot .mh-date{white-space:nowrap;color:var(--mp-muted)}
#mpRoot .mh-num,#mpRoot .mh-table th.mh-num{white-space:nowrap;text-align:right}
#mpRoot .mh-num strong{font-size:14px}
#mpRoot .mh-table td:nth-child(4) small,#mpRoot .mh-num small{display:block}
#mpRoot .mh-gain{color:var(--mh-good);font-size:11px}
#mpRoot .mh-actions{white-space:nowrap;text-align:right}
#mpRoot .mh-actions>*{margin-left:6px;vertical-align:middle}

#mpRoot .mh-pill{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap;border:1px solid var(--mp-border);color:var(--mp-muted)}
#mpRoot .mh-pill.is-published{color:var(--mh-good);border-color:color-mix(in srgb,var(--mh-good) 40%,transparent);background:color-mix(in srgb,var(--mh-good) 8%,transparent)}
#mpRoot .mh-pill.is-pending{color:var(--mh-todo);border-color:color-mix(in srgb,var(--mh-todo) 45%,transparent);background:color-mix(in srgb,var(--mh-todo) 9%,transparent)}
#mpRoot .mh-pill.is-overdue{color:var(--mh-warn);border-color:color-mix(in srgb,var(--mh-warn) 45%,transparent);background:color-mix(in srgb,var(--mh-warn) 9%,transparent)}

#mpRoot .mh-menu{display:inline-block;position:relative}
#mpRoot .mh-menu>summary{list-style:none;display:inline-flex;align-items:center}
#mpRoot .mh-menu>summary::-webkit-details-marker{display:none}
#mpRoot .mh-menu-list{position:absolute;right:0;top:calc(100% + 4px);z-index:20;display:grid;min-width:140px;padding:4px;border:1px solid var(--mp-border);border-radius:8px;background:var(--mp-panel);box-shadow:0 8px 24px rgba(0,0,0,.18)}
#mpRoot .mh-menu-item{border:0;background:transparent;color:var(--mp-text);text-align:left;padding:8px 10px;border-radius:6px;font:inherit;font-size:12px;cursor:pointer}
#mpRoot .mh-menu-item:hover:not(:disabled){background:color-mix(in srgb,var(--mp-cyan) 10%,transparent)}
#mpRoot .mh-menu-item:disabled{opacity:.5;cursor:not-allowed}

#mpRoot .mh-detail-row>td{padding:12px 16px 18px;background:color-mix(in srgb,var(--mp-cyan) 3%,var(--mp-panel))}
#mpRoot .mh-edit{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;font-size:12px}
#mpRoot .mh-empty-detail{margin:4px 0}
#mpRoot .mh-post{padding:12px 14px;margin-bottom:10px;border:1px solid var(--mp-border);border-radius:8px;background:var(--mp-panel)}
#mpRoot .mh-post.is-suggested{border-color:color-mix(in srgb,var(--mh-todo) 40%,var(--mp-border))}
#mpRoot .mh-post-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}
#mpRoot .mh-post-head .mp-link{font-weight:700}
#mpRoot .mh-post-head .mp-btn{margin-left:auto}
#mpRoot .mh-stats{display:flex;gap:26px;margin:12px 0 6px}
#mpRoot .mh-stat{display:flex;flex-direction:column;gap:2px}
#mpRoot .mh-stat strong{font-size:16px}
#mpRoot .mh-stages{display:flex;gap:18px;color:var(--mp-muted);font-size:12px}
#mpRoot .mh-chart{margin-top:10px;max-width:720px}
#mpRoot .mh-svg{width:100%;height:auto;display:block;overflow:visible}
#mpRoot .mh-grid{stroke:var(--mp-border);stroke-width:1}
#mpRoot .mh-axis{fill:var(--mp-muted);font-size:10px}
#mpRoot .mh-line{fill:none;stroke:var(--mp-cyan);stroke-width:2.2;stroke-linejoin:round}
#mpRoot .mh-point{fill:var(--mp-panel);stroke:var(--mp-cyan);stroke-width:2}
#mpRoot .mh-bar{fill:color-mix(in srgb,var(--mp-cyan) 45%,transparent)}
#mpRoot .mh-axis-gain{fill:color-mix(in srgb,var(--mp-cyan) 70%,var(--mp-muted))}
#mpRoot .mh-legend{display:flex;gap:16px;color:var(--mp-muted);font-size:11px;margin-top:4px}
#mpRoot .mh-key-line::before{content:'';display:inline-block;width:14px;height:2px;margin-right:5px;vertical-align:middle;background:var(--mp-cyan)}
#mpRoot .mh-key-bar::before{content:'';display:inline-block;width:8px;height:10px;margin-right:5px;vertical-align:middle;background:color-mix(in srgb,var(--mp-cyan) 35%,transparent)}
#mpRoot .mh-note{margin-top:14px;color:var(--mp-muted);font-size:12px}
#mpRoot .mh-note summary{cursor:pointer}

#mpRoot .mh-section{font-size:14px;margin:18px 0 10px}
#mpRoot .mh-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
#mpRoot .mh-person{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--mp-border);border-radius:10px;background:var(--mp-panel)}
#mpRoot .mh-person>strong{font-size:15px}
#mpRoot .mh-person-nums{display:flex;gap:20px}
#mpRoot .mh-person .mh-pill{align-self:flex-start}
#mpRoot .mh-stat.is-good strong{color:var(--mh-good)}
#mpRoot .mh-stat.is-todo strong,#mpRoot .mh-todo{color:var(--mh-todo);font-weight:700}
#mpRoot .mh-overdue-text{color:var(--mh-warn)}
#mpRoot .mh-day-start td{border-top:1px solid var(--mp-border)}
#mpRoot .mh-footnote{margin-top:10px}

@media(max-width:760px){#mpRoot .mh-topbar,#mpRoot .mh-update{align-items:flex-start;flex-direction:column}#mpRoot .mh-search{margin-left:0;flex:1 1 100%}#mpRoot .mh-rate{margin-left:0}}
