/* =====================================================================
 * 多站点管控中心 · 前台界面
 * 每个站一个固定颜色（--c），贯穿侧栏、图表、订单、日志；其余保持安静。
 * ===================================================================== */

:root {
	--bg: #F3F5F9; --panel: #FFFFFF; --panel-2: #F8F9FC; --ink: #172033; --ink-2: #475468; --muted: #8892A4;
	--line: #E2E6EE; --line-2: #EDF0F5; --primary: #4C4DDC; --primary-2: #3E3FC4; --primary-soft: #ECECFD;
	--ok: #0E7F59; --ok-soft: #E3F5EE; --bad: #C9303B; --bad-soft: #FCEBEC; --warn: #9A6400; --warn-soft: #FDF3DD;
	--shadow: 0 1px 2px rgba(23, 32, 51, .05), 0 6px 20px -12px rgba(23, 32, 51, .18);
	--shadow-lg: 0 24px 60px -20px rgba(23, 32, 51, .35);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--side: 244px;
	color-scheme: light;
}
:root[data-mh-theme="dark"] {
	--bg: #0E1219; --panel: #161B24; --panel-2: #1B212C; --ink: #E7EBF2; --ink-2: #B3BCCB; --muted: #7D8799;
	--line: #262D3A; --line-2: #20262F; --primary: #6567F0; --primary-2: #7A7CF6; --primary-soft: #252650;
	--ok: #3CC68F; --ok-soft: #12302A; --bad: #FF6B73; --bad-soft: #3A1C21; --warn: #F0B44C; --warn-soft: #36290F;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-mh-theme="light"]) {
		--bg: #0E1219; --panel: #161B24; --panel-2: #1B212C; --ink: #E7EBF2; --ink-2: #B3BCCB; --muted: #7D8799;
		--line: #262D3A; --line-2: #20262F; --primary: #6567F0; --primary-2: #7A7CF6; --primary-soft: #252650;
		--ok: #3CC68F; --ok-soft: #12302A; --bad: #FF6B73; --bad-soft: #3A1C21; --warn: #F0B44C; --warn-soft: #36290F;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* ---------- 基础 ---------- */
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font: 14px/1.55 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh h1, .mh h2, .mh h3 { color: var(--ink); margin: 0; font-weight: 650; }
.mh p { margin: 0 0 8px; }
.mh a { color: var(--primary); text-decoration: none; }
.mh a:hover { color: var(--primary-2); }
:where(.mh) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.mh :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.mh .ic { flex: none; display: block; }
.mh code { font: 12.5px ui-monospace, Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.mh .mh-muted { color: var(--muted); font-size: 12.5px; }
.mh .ok { color: var(--ok); }
.mh .bad { color: var(--bad); }
.mh .warn { color: var(--warn); }
.mh [hidden] { display: none !important; }

.mh-splash { min-height: 100vh; display: grid; place-items: center; }
.mh-splash .mh-logo { transform: scale(1.6); animation: mh-pulse 1.2s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: .45; } }

/* ---------- 登录页 ---------- */
.mh-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent), var(--bg); }
.mh-login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 30px 28px 22px; display: grid; gap: 14px; }
.mh-login-sub { color: var(--ink-2); margin: -6px 0 4px !important; }
.mh-login-msg { color: var(--warn); background: var(--warn-soft); border-radius: 9px; padding: 8px 12px; font-size: 13px; margin: 0 !important; }
.mh-login-foot { text-align: center; font-size: 13px; margin: 2px 0 0 !important; }
.mh-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.mh-check input { accent-color: var(--primary); margin: 0; }

/* ---------- 侧边栏 ---------- */
.mh-side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 60; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px 12px; overflow-y: auto; }
.mh-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; padding: 4px 8px 16px; letter-spacing: .02em; }
.mh-brand.big { font-size: 20px; padding: 0 0 4px; }
.mh-logo { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; height: 22px; }
.mh-logo i { display: block; border-radius: 2px; }
.mh-logo i:nth-child(1) { height: 10px; background: #4C4DDC; }
.mh-logo i:nth-child(2) { height: 22px; background: #E8590C; }
.mh-logo i:nth-child(3) { height: 15px; background: #0F9D8A; }
.mh-search-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; margin-bottom: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; }
.mh-search-btn:hover { border-color: var(--primary); color: var(--ink-2); }
.mh-search-btn span { flex: 1; }
.mh kbd { font: 11px/1 var(--font); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; }
.mh-nav { display: grid; gap: 2px; }
.mh-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; }
.mh-nav a:hover { background: var(--panel-2); color: var(--ink); }
.mh-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.mh-side-h { margin: 22px 10px 6px; font-size: 12px; color: var(--muted); }
.mh-sitelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mh-sitelist a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; }
.mh-sitelist a:hover { background: var(--panel-2); color: var(--ink); }
.mh-sl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-sl-code { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-sl-bad { width: 17px; height: 17px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.mh-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--muted)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #888) 16%, transparent); }
.mh-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.mh-me { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.mh-me b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-me small { display: block; color: var(--muted); font-size: 11.5px; }
.mh-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.mh-foot-btns { display: flex; gap: 2px; }

/* ---------- 主区域与顶部固定栏 ---------- */
.mh-main { margin-left: var(--side); min-height: 100vh; }
.mh-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px 32px; min-height: 68px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mh-top.is-stuck { border-bottom-color: var(--line); }
.mh-title { flex: 1; min-width: 0; }
.mh-title h1 { font-size: 21px; line-height: 1.3; }
.mh-title p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.mh-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.mh-actions .mh-seg { padding: 2px; }
.mh-actions .mh-seg span { padding: 5px 10px; }
.mh-top .mh-burger { display: none; }
.mh-body { padding: 8px 32px 120px; max-width: 1360px; }

/* ---------- 按钮 ---------- */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 550 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 0 rgba(23, 32, 51, .03); text-decoration: none; }
.mh a.mh-btn { color: var(--ink); }
.mh-btn:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.mh-btn-primary, .mh a.mh-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.mh-btn-primary:hover, .mh a.mh-btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.mh-btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.mh-btn-block { width: 100%; height: 44px; font-size: 15px; }
.mh-btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.mh-btn.danger, .mh-icon-btn.danger { color: var(--bad); }
.mh-btn:disabled { opacity: .5; cursor: not-allowed; }
.mh-btn-primary:disabled { opacity: 1; background: var(--line); border-color: var(--line); color: var(--muted); }
.mh-btn.is-busy .ic, .mh-icon-btn.is-busy .ic { animation: mh-spin .8s linear infinite; }
@keyframes mh-spin { to { transform: rotate(360deg); } }
.mh-icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.mh a.mh-icon-btn { color: var(--ink-2); }
.mh-icon-btn:hover, .mh a.mh-icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.mh-link { border: 0; background: none; color: var(--primary); font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.mh-link:hover { text-decoration: underline; }

/* ---------- 面板、加载、出错 ---------- */
.mh-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.mh-panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mh-panel-h h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mh-count { font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.mh-foot-note { color: var(--muted); font-size: 12px; margin: 10px 0 0 !important; }
.mh-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mh-grid2 > .mh-panel { margin-bottom: 18px; }
.mh-skel { display: grid; gap: 12px; }
.mh-skel-row { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%) 0 0 / 200% 100%; border: 1px solid var(--line-2); animation: mh-shimmer 1.2s linear infinite; }
.mh-skel-row:first-child { height: 110px; }
@keyframes mh-shimmer { to { background-position: -200% 0; } }
.mh-errbox, .mh-okbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); margin-bottom: 14px; }
.mh-errbox > .ic { color: var(--bad); margin-top: 2px; }
.mh-okbox { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.mh-okbox > .ic { color: var(--ok); margin-top: 2px; }
.mh-errbox p, .mh-okbox p { margin: 4px 0 8px !important; color: var(--ink-2); }
.mh-errbox ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.mh-errbox li, .mh-test-result li { display: flex; gap: 6px; align-items: flex-start; }
.mh-errbox li .ic, .mh-test-result li .ic { margin-top: 2px; }
.mh-copyline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-copyline code { font-size: 15px; padding: 4px 8px; }

/* ---------- 关键数字 ---------- */
.mh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
.mh-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.mh-kpi-k { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-kpi-v { font-size: 27px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mh-kpi-v small { font-size: 14px; font-weight: 500; color: var(--muted); }
.mh-kpi-v2 { font-size: 16px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.mh-kpi-s { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.mh-kpi-health.has-bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: linear-gradient(var(--bad-soft), var(--bad-soft)) top / 100% 4px no-repeat, var(--panel); }
.mh-delta { font-size: 11.5px; font-weight: 650; padding: 1px 6px; border-radius: 99px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-delta.up { color: var(--ok); background: var(--ok-soft); }
.mh-delta.down { color: var(--bad); background: var(--bad-soft); }

/* ---------- 折线图 ---------- */
.mh-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.mh-legend button { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 8px; cursor: pointer; }
.mh-legend button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.mh-legend button[aria-pressed="false"] { opacity: .45; }
.mh-chart { position: relative; height: 240px; }
.mh-chart.sm { height: 170px; }
.mh-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mh-chart .grid line { stroke: var(--line-2); }
.mh-chart .axis text { fill: var(--muted); font-size: 11px; }
.mh-chart .ln { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mh-chart .ar { fill: var(--c); opacity: .08; }
.mh-chart .cursor { stroke: var(--ink-2); stroke-dasharray: 3 3; opacity: 0; }
.mh-chart .cursor.on { opacity: .5; }
.mh-chart .dot { fill: var(--panel); stroke: var(--c); stroke-width: 2.2; }
.mh-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--panel); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; min-width: 150px; box-shadow: var(--shadow-lg); transform: translate(-50%, -100%); white-space: nowrap; z-index: 5; }
.mh-tip b { display: block; margin-bottom: 4px; font-size: 12px; opacity: .75; font-weight: 500; }
.mh-tip div { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.mh-tip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; margin-right: 4px; }
.mh-chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mh-chart-pair h3 { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }

/* ---------- 条形列表 ---------- */
.mh-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mh-bar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.mh-bar-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mh-bar-l b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mh-bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.mh-bar i { display: block; height: 100%; border-radius: 99px; }

/* ---------- 站点选择条 ---------- */
.mh-sitechips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 16px; position: sticky; top: var(--mh-top-h, 68px); z-index: 30; padding: 6px 0 8px; background: var(--bg); }
.mh-sitechips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 13px; }
.mh-sitechips a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--ink-2)); }
.mh-sitechips a small { color: var(--muted); font-size: 11px; }
.mh-sitechips a.is-off { opacity: .6; }
.mh-sitechips a[aria-selected="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.mh-sitechips a[aria-selected="true"] small { color: inherit; opacity: .7; }

/* ---------- 站点状态板 ---------- */
.mh-board { display: grid; }
.mh-board-head, .mh-row { display: grid; grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(88px, 1fr)) minmax(90px, .9fr) minmax(180px, 1.4fr) 108px; align-items: center; gap: 14px; }
.mh-board-head { font-size: 12px; color: var(--muted); padding: 0 12px 8px; border-bottom: 1px solid var(--line-2); }
.mh-row { padding: 12px; border-bottom: 1px solid var(--line-2); position: relative; border-radius: 10px; scroll-margin-top: 90px; }
.mh-row:last-child { border-bottom: 0; }
.mh-row:hover { background: var(--panel-2); }
.mh-row.is-target { animation: mh-flash 1.6s ease-out; }
@keyframes mh-flash { 0%, 30% { background: color-mix(in srgb, var(--c) 14%, transparent); } 100% { background: transparent; } }
.mh-row.is-loading { opacity: .5; pointer-events: none; }
.mh-row-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mh-row-site > .mh-swatch { width: 4px; height: 34px; border-radius: 4px; box-shadow: none; }
.mh-row-site > div { min-width: 0; }
.mh-row-name { font-weight: 650; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-row-url { font-size: 12px; color: var(--muted) !important; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-row-num b { display: block; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mh-row-num small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.mh-row-wide { grid-column: span 3; }
.mh-row-health { display: grid; gap: 4px; justify-items: start; }
.mh-row-health small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mh-row-act { display: flex; justify-content: flex-end; gap: 2px; }
.mh-row-err { grid-column: 1 / -1; margin: -2px 0 0 16px; font-size: 12.5px; color: var(--bad); background: var(--bad-soft); padding: 6px 10px; border-radius: 8px; }
.mh-spark { width: 100%; height: 32px; display: block; }
.mh-spark polyline { fill: none; stroke: var(--c); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mh-spark polygon { fill: var(--c); opacity: .1; }
.mh-code { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.mh .mh-code-l { font-size: 13px; padding: 3px 8px; word-break: break-all; }

/* ---------- 标签 / 状态 ---------- */
.mh-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.mh-pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mh-pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.mh-pill.st-completed { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mh-pill.st-processing { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.mh-pill.st-on-hold, .mh-pill.st-pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.mh-pill.st-cancelled, .mh-pill.st-failed, .mh-pill.st-refunded { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.mh-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); background: color-mix(in srgb, var(--c) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-radius: 6px; padding: 0 6px; line-height: 20px; font-variant-numeric: tabular-nums; }
.mh-tag i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }

/* ---------- 表格 ---------- */
.mh-table-wrap { overflow-x: auto; margin: 0 -8px; }
.mh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.mh-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.mh-table td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-table tbody tr:hover td { background: var(--panel-2); }
.mh-table .num, .mh-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mh-table td.num { font-weight: 600; white-space: nowrap; }
.mh-table .right { text-align: right; white-space: nowrap; }
.mh-cell-name { color: var(--ink-2); margin-left: 4px; }
.mh-cell-site { display: flex; align-items: center; gap: 8px; }
.mh-cell-path { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-cell-err { display: block; color: var(--bad); font-size: 12px; margin-top: 4px; }
.mh-inline-acts { display: inline-flex; align-items: center; gap: 2px; }
.mh-inline-acts .mh-btn { margin-right: 6px; }
.mh-test-result ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }

/* ---------- 收录检查 ---------- */
.mh-idx-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; background: var(--panel-2); border-radius: 10px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.mh-idx-sum b { font-size: 20px; margin-right: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.mh-idx-sum b.ok { color: var(--ok); } .mh-idx-sum b.warn { color: var(--warn); } .mh-idx-sum b.bad { color: var(--bad); }
.mh-idx td.mh-muted { max-width: 280px; }

/* ---------- 空状态 ---------- */
.mh-empty { text-align: center; padding: 64px 24px; background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; }
.mh-empty h2 { font-size: 18px; margin-bottom: 6px; }
.mh-empty p { color: var(--ink-2); margin: 0 auto 18px; max-width: 440px; }
.mh-empty-art { display: inline-grid; grid-template-columns: repeat(3, 14px); gap: 6px; align-items: end; height: 46px; margin-bottom: 16px; }
.mh-empty-art i { border-radius: 4px; }
.mh-empty-art i:nth-child(1) { height: 20px; background: #4C4DDC; }
.mh-empty-art i:nth-child(2) { height: 46px; background: #E8590C; }
.mh-empty-art i:nth-child(3) { height: 32px; background: #0F9D8A; }

/* ---------- 表单 ---------- */
.mh-form { display: grid; gap: 14px; align-content: start; }
.mh-narrow { max-width: 420px; }
.mh-field { display: grid; gap: 6px; flex: 1; min-width: 0; }
.mh-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mh-field input, .mh-field select, .mh-title-input, .mh-tags-input, .mh textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); font-size: 14px; }
.mh textarea { height: auto; padding: 10px 12px; resize: vertical; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.mh-field input:focus, .mh-field select:focus, .mh-tags-input:focus, .mh textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: 0; }
.mh-field-row { display: flex; gap: 12px; }
.mh-hint { margin: -6px 0 0 !important; color: var(--muted); font-size: 12.5px; }
.mh-hint.warn { margin: 10px 0 0 !important; color: var(--warn); background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; }
.mh-hint.ok { color: var(--ok); }
.mh-steps { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.mh-steps ol { margin: 6px 0 6px 18px; padding: 0; }
.mh-steps p { margin: 0 !important; color: var(--muted); font-size: 12.5px; }
.mh-sec-h { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-top: 6px !important; padding-top: 14px; border-top: 1px solid var(--line-2); }
.mh-more summary { cursor: pointer; color: var(--primary); font-size: 13px; padding: 4px 0; }
.mh-more[open] { display: grid; gap: 12px; }
.mh-seg { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.mh-seg label { flex: 1; position: relative; }
.mh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mh-seg span { display: block; text-align: center; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.mh-seg input:checked + span { background: var(--panel); color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(23, 32, 51, .12); }
.mh-seg input:focus-visible + span { outline: 2px solid var(--primary); }
.mh-seg.sm { display: inline-flex; }
.mh-seg.sm span { padding: 4px 12px; }

/* ---------- 右侧滑出面板 ---------- */
.mh-drawer-scrim { position: fixed; inset: 0; background: rgba(14, 18, 25, .38); z-index: 80; animation: mh-fade .2s; }
.mh-drawer { position: fixed; inset: 0 0 0 auto; width: min(520px, 100vw); z-index: 81; background: var(--panel); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: mh-slide .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes mh-fade { from { opacity: 0; } }
@keyframes mh-slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes mh-rise { from { transform: translateY(12px); opacity: 0; } }
.mh-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mh-drawer-h h2 { font-size: 17px; }
.mh-drawer-b { flex: 1; overflow-y: auto; padding: 20px 22px; }
.mh-drawer-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--panel); }

/* ---------- 发布文章 ---------- */
.mh-compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.mh-compose-main { margin: 0; }
.mh-title-input { height: 52px; font-size: 20px; font-weight: 650; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 0 2px !important; margin-bottom: 14px; background: transparent !important; }
.mh-title-input:focus { box-shadow: none !important; border-bottom-color: var(--primary) !important; outline: 0; }
.mh-editor { border: 1px solid var(--line); border-radius: 10px; }
.mh-ed-area, .mh .mh-ed-src { border-radius: 0 0 10px 10px; }
.mh-ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: var(--panel-2); border-bottom: 1px solid var(--line); position: sticky; top: var(--mh-top-h, 68px); z-index: 5; border-radius: 10px 10px 0 0; }
.mh-ed-bar button, .mh-ed-bar select { height: 30px; min-width: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.mh-ed-bar select { border-color: var(--line); background: var(--panel); }
.mh-ed-bar button:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
.mh-ed-bar [data-ed="bold"] { font-weight: 800; }
.mh-ed-bar [data-ed="italic"] { font-style: italic; font-family: Georgia, serif; }
.mh-ed-bar .mh-ed-sp { flex: 1; }
.mh-ed-bar .mh-ed-html[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.mh-ed-area { min-height: 420px; padding: 16px 18px; outline: 0; font-size: 15.5px; line-height: 1.8; overflow-wrap: anywhere; }
.mh-ed-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.mh-ed-area h2 { font-size: 22px; margin: 18px 0 8px; }
.mh-ed-area h3 { font-size: 18px; margin: 16px 0 6px; }
.mh-ed-area p { margin: 0 0 12px; }
.mh-ed-area blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--ink-2); }
.mh-ed-area img { max-width: 100%; height: auto; border-radius: 6px; }
.mh .mh-ed-src { border: 0; border-radius: 0; min-height: 420px; font-size: 13px; }
.mh-sticky { position: sticky; top: calc(var(--mh-top-h, 68px) + 16px); margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - var(--mh-top-h, 68px) - 116px); padding-bottom: 16px; }
.mh-side-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -20px; padding: 0 20px 4px; }
.mh-sticky > .mh-btn-block { flex: none; margin-top: 12px; }
.mh-compose-side h3 { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.mh-compose-side h3 + * { margin-bottom: 18px; }
.mh-pick { display: grid; gap: 6px; }
.mh-pick-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mh-pick-item:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.mh-pick-item:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, var(--panel)); box-shadow: 0 0 0 1px var(--c); }
.mh-pick-item input { margin: 0; accent-color: var(--c); }
.mh-pick-item b { display: block; font-size: 13.5px; }
.mh-pick-item small { display: block; color: var(--muted); font-size: 12px; }
.mh-pick-item.is-off { opacity: .55; cursor: not-allowed; }
.mh-cats { display: grid; gap: 10px; margin-bottom: 18px; }
.mh-cats-empty { margin: 0 !important; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.mh-cat-site { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; border-left: 3px solid var(--c); }
.mh-cat-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mh-cat-h b { font-size: 13px; }
.mh-cat-n { margin-left: auto; font-size: 12px; }
.mh-cat-filter { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 6px; background: var(--panel); color: var(--ink); font-size: 13px; }
.mh-cat-list { max-height: 220px; overflow-y: auto; display: grid; gap: 1px; }
.mh-cat { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px calc(6px + var(--d, 0) * 16px); border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.mh-cat:hover { background: var(--panel-2); }
.mh-cat input { margin: 0; accent-color: var(--c); }
.mh-cat span { flex: 1; min-width: 0; }
.mh-cat small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mh-cat:has(input:checked) span { font-weight: 600; }
.mh-cat-addbtn { margin-top: 6px; }
.mh-cat-new { display: grid; gap: 6px; margin-top: 6px; }
.mh-cat-new input, .mh-cat-new select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--panel); color: var(--ink); font-size: 13px; max-width: 100%; }
.mh-tags-input { height: 38px; }
.mh-result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mh-result-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-result-list .mh-cell-err { flex-basis: 100%; }

/* ---------- 成员 ---------- */
.mh-members { list-style: none; margin: 0; padding: 0; }
.mh-member { display: grid; grid-template-columns: 240px 1fr; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); align-items: center; }
.mh-member:last-child { border-bottom: 0; }
.mh-member-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mh-member-who b { display: block; }
.mh-member-who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-member-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.mh-member-role { display: flex; align-items: center; gap: 12px; }
.mh-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.mh-chip { position: relative; }
.mh-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mh-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); cursor: pointer; background: var(--panel); }
.mh-chip span i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--muted)); }
.mh-chip input:checked + span { border-color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 9%, var(--panel)); color: var(--ink); font-weight: 600; }
.mh-chip input:focus-visible + span { outline: 2px solid var(--primary); }
.mh-member-save { display: flex; gap: 6px; margin-left: auto; }
.mh-save-dirty { display: none; }
form.is-dirty .mh-save-dirty { display: inline-flex; }
.mh-member:has(form.is-dirty) { background: color-mix(in srgb, var(--primary) 5%, transparent); border-radius: 10px; }

/* ---------- 日志 ---------- */
.mh-filter { position: sticky; top: var(--mh-top-h, 68px); z-index: 30; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 14px; background: var(--bg); }
.mh-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 13px; }
.mh-filter a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mh-filter a[aria-current="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.mh-log { list-style: none; margin: 0; padding: 0; }
.mh-log-day { font-size: 12px; color: var(--muted); padding: 14px 4px 6px; font-weight: 600; }
.mh-log-day:first-child { padding-top: 0; }
.mh-log-item { display: grid; grid-template-columns: 52px 96px 70px 1fr auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.mh-log-item time { color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-log-act { font-weight: 600; color: var(--ink-2); }
.mh-log-who { color: var(--muted); font-size: 12.5px; }
.mh-log-item.is-bad .mh-log-text, .mh-log-item.is-bad time { color: var(--bad); }

/* ---------- 设置：Google ---------- */
.mh-gsteps { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; margin: 12px 0 14px; }
.mh-gsteps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.mh-gsteps b { color: var(--ink); }
.mh-upload { display: grid; gap: 10px; margin-bottom: 10px; }
.mh-dropzone { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--ink-2); background: var(--panel); }
.mh-dropzone:hover, .mh-dropzone.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.mh-dropzone b { display: block; color: var(--ink); }
.mh-dropzone small { color: var(--muted); }

/* ---------- 悬浮快捷按钮 ---------- */
.mh-fab { position: fixed; right: 28px; bottom: 28px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.mh-fab-btn, .mh-fab.open .mh-fab-menu { pointer-events: auto; }
.mh-fab-btn { width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--primary) 70%, transparent); transition: transform .2s, border-radius .2s; }
.mh-fab-btn:hover { transform: translateY(-1px); }
.mh-fab.open .mh-fab-btn { transform: rotate(45deg); border-radius: 50%; }
.mh-fab-menu { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: var(--shadow-lg); transform-origin: bottom right; transform: scale(.92) translateY(8px); opacity: 0; visibility: hidden; transition: .16s; }
.mh-fab.open .mh-fab-menu { transform: none; opacity: 1; visibility: visible; }
.mh-fab-menu a, .mh-fab-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; font-size: 14px; color: var(--ink) !important; cursor: pointer; text-align: left; width: 100%; }
.mh-fab-menu a:hover, .mh-fab-menu button:hover { background: var(--panel-2); }

/* ---------- Ctrl+K ---------- */
.mh-pal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(14, 18, 25, .38); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: mh-fade .15s; }
.mh-pal { width: min(600px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mh-pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mh-pal-in input { flex: 1; height: 54px; border: 0; box-shadow: none; background: transparent; font-size: 16px; color: var(--ink); outline: 0; padding: 0; }
.mh-pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.mh-pal-g { font-size: 12px; color: var(--muted); padding: 10px 10px 4px; }
.mh-pal-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--ink); }
.mh-pal-item[aria-selected="true"] { background: var(--primary-soft); }
.mh-pal-item small { margin-left: auto; color: var(--muted); font-size: 12px; }
.mh-pal-item .mh-swatch { width: 9px; height: 9px; }
.mh-pal-empty { padding: 28px; text-align: center; color: var(--muted); }
.mh-pal-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- 提示条 ---------- */
/* 提示放在底部中间：不挡顶部的常用按钮，也不挡右下角的“＋” */
.mh-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.mh-toast { pointer-events: auto; }
.mh-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--ink); animation: mh-rise .22s cubic-bezier(.2, .8, .2, 1); }
.mh-toast .ic { color: var(--ok); margin-top: 1px; }
.mh-toast.err { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.mh-toast.err .ic { color: var(--bad); }
.mh-toast p { margin: 0; flex: 1; }
.mh-toast button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
	.mh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-board-head { display: none; }
	.mh-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
	.mh-row-site { grid-column: 1 / -1; }
	.mh-row-num::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); }
	.mh-row-health { grid-column: 1 / -1; }
	.mh-row-act { position: absolute; top: 10px; right: 8px; }
	.mh-row-wide { grid-column: 1 / 4; }
	.mh-compose { grid-template-columns: 1fr; }
	.mh-sticky { position: static; max-height: none; }
	.mh-side-scroll { overflow: visible; }
	.mh-member { grid-template-columns: 1fr; }
	.mh-grid2 { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 860px) {
	.mh-side { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
	.is-app.side-open .mh-side { transform: none; }
	.is-app.side-open .mh-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(14, 18, 25, .38); }
	.mh-main { margin-left: 0; }
	.mh-top .mh-burger { display: inline-grid; }
	.mh-top { padding: 10px 16px; min-height: 60px; flex-wrap: wrap; }
	.mh-title h1 { font-size: 18px; }
	.mh-title p { display: none; }
	.mh-actions .mh-btn span { display: none; }
	.mh-actions .mh-btn { width: 38px; padding: 0; }
	.mh-body { padding: 4px 16px 110px; }
	.mh-chart-pair { grid-template-columns: 1fr; }
	.mh-log-item { grid-template-columns: 46px 1fr; }
	.mh-log-act, .mh-log-site { grid-column: 2; }
	.mh-log-text, .mh-log-who { grid-column: 1 / -1; }
	.mh-fab { right: 16px; bottom: 16px; }
	.mh-toasts { bottom: 84px; }
	.mh-compose-side .mh-btn-block { position: fixed; left: 16px; right: 88px; bottom: 16px; width: auto; z-index: 65; box-shadow: var(--shadow-lg); }
	.mh-orders thead { display: none; }
	.mh-orders, .mh-orders tbody { display: block; }
	.mh-orders tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 8px; border-bottom: 1px solid var(--line-2); }
	.mh-orders tr:last-child { border-bottom: 0; }
	.mh-orders td { padding: 0; border: 0 !important; background: none !important; }
	.mh-orders td:nth-child(4) { grid-column: 2; grid-row: 1; font-size: 15px; }
	.mh-orders td:nth-child(2)::after { content: attr(data-cust); color: var(--muted); margin-left: 8px; }
	.mh-orders td:nth-child(3) { display: none; }
	.mh-orders td:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: end; }
	.mh-orders td:nth-child(6) { grid-column: 1 / -1; font-size: 12px; }
	.mh-ed-area, .mh .mh-ed-src { min-height: 300px; }
	.mh-field-row { flex-wrap: wrap; }
}
@media (max-width: 560px) {
	.mh-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mh-kpi { padding: 12px 14px; }
	.mh-kpi-v { font-size: 21px; }
	.mh-row { grid-template-columns: 1fr 1fr; }
	.mh-row-num[data-label="近 30 天"] { display: none; }
	.mh-row-wide { grid-column: 1 / -1; }
	.mh-panel { padding: 14px; border-radius: 12px; }
	.mh-actions .mh-seg span { padding: 5px 7px; font-size: 12px; }
}
/* =====================================================================
 * v0.5：关键词中心、待办、SEO 检查
 * ===================================================================== */
.mh-nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.mh-nav-badge[hidden] { display: none; }
.mh-row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mh-icon-btn.sm { width: 26px; height: 26px; border-radius: 7px; }
.mh-ok-line { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }

/* 发布页 */
.mh-ed-count { font-size: 12px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.mh-compose-main > .mh-panel { margin-bottom: 18px; }
.mh-seo-more { margin: 0 0 18px; }
.mh-seo-more .mh-field textarea { height: auto; padding: 8px 12px; }
.mh-when { margin-top: 10px; }
.mh-when[hidden] { display: none; }
.mh-check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.mh-check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.mh-check-list li .ic { flex: none; margin-top: 2px; }
.mh-check-list li.ok .ic { color: var(--ok); }
.mh-check-list li.bad .ic { color: var(--bad); }
.mh-check-list li.warn .ic { color: var(--warn); }
.mh-check-list b { font-weight: 600; display: block; }
.mh-check-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mh-seo-check[hidden] { display: none; }

/* 关键词：小标签 */
.mh-intent { display: inline-block; font-size: 11px; font-weight: 650; padding: 0 6px; line-height: 18px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
.mh-intent.i { background: #E8F1FE; color: #1F63C7; }
.mh-intent.c { background: #F3EAFD; color: #7A3FC9; }
.mh-intent.t { background: #E3F5EE; color: #0E7F59; }
.mh-intent.n { background: #FDF3DD; color: #9A6400; }
:root[data-mh-theme="dark"] .mh-intent { filter: saturate(.9) brightness(.9); background: color-mix(in srgb, currentColor 18%, transparent); }
.mh-kd { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-kd.e { background: var(--ok-soft); color: var(--ok); }
.mh-kd.m { background: #FFF6D8; color: #8A6A00; }
.mh-kd.h { background: #FFE9D9; color: #B4520A; }
.mh-kd.x { background: var(--bad-soft); color: var(--bad); }
.mh-kd.na { color: var(--muted); }
:root[data-mh-theme="dark"] .mh-kd.m, :root[data-mh-theme="dark"] .mh-kd.h { background: color-mix(in srgb, currentColor 18%, transparent); }
.mh-rank { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; }
.mh-rank.top { color: var(--ok); }
.mh-rank.near { color: var(--warn); }
.mh-rank.sem { color: var(--muted); font-weight: 600; }

/* 关键词：空状态 */
.mh-kw-empty { text-align: center; padding: 40px 24px; }
.mh-kw-empty h2 { font-size: 19px; margin: 14px 0 8px; }
.mh-kw-empty > p { color: var(--ink-2); max-width: 560px; margin: 0 auto 12px; }
.mh-kw-empty .mh-row-btns { justify-content: center; margin-top: 16px; }
.mh-kw-how { text-align: left; max-width: 560px; margin: 14px auto; padding: 14px 18px 14px 36px; background: var(--panel-2); border-radius: 12px; display: grid; gap: 6px; color: var(--ink-2); }
.mh-kw-how b { color: var(--ink); }

/* 关键词：工具栏（跟着屏幕走） */
.mh-kw-panel { padding-top: 0; }
.mh-kw-tools { position: sticky; top: var(--mh-top-h, 68px); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--panel); margin: 0 -20px 4px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line-2); border-radius: 14px 14px 0 0; }
.mh-kw-tools .mh-seg { flex: none; }
.mh-kw-tools select { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); font-size: 13px; padding: 0 8px; max-width: 170px; }
.mh-kw-search { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); flex: 1 1 180px; max-width: 260px; }
.mh-kw-search input { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; width: 100%; height: 30px; }
.mh-kw-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.mh .mh-kw-st { position: static; padding: 0; background: none; flex-basis: 100%; order: 9; }
.mh-kw-none { padding: 30px 0; text-align: center; }

/* 关键词：话题列表 */
.mh-kw-list { display: grid; }
.mh-kw-head, .mh-kw-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 86px 62px 92px 76px 96px 224px; gap: 10px; align-items: center; }
.mh-kw-head > :nth-child(n+3) { white-space: nowrap; }
.mh-kw-head { font-size: 12px; color: var(--muted); padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.mh-kw-row { padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.mh-kw-row:hover { background: var(--panel-2); }
.mh-kw-ck input, .mh-kw-table .ck input { width: 16px; height: 16px; accent-color: var(--primary); }
.mh-kw-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.mh-kw-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; text-align: left; font-size: 14.5px; }
.mh-kw-open:hover { color: var(--primary); text-decoration: underline; }
.mh-kw-more { border: 0; background: var(--panel-2); color: var(--ink-2); font-size: 11.5px; border-radius: 99px; padding: 1px 8px; cursor: pointer; margin-left: 6px; }
.mh-kw-more:hover, .mh-kw-more[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); }
.mh-kw-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; display: flex; gap: 5px; align-items: center; }
.mh-kw-num b { font-variant-numeric: tabular-nums; }
.mh-kw-num small { display: block; color: var(--muted); font-size: 11.5px; }
.mh-kw-score { display: flex; align-items: center; gap: 6px; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.mh-kw-score i { flex: 1; height: 6px; border-radius: 9px; background: var(--line-2); position: relative; overflow: hidden; max-width: 56px; }
.mh-kw-score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #7F80F0, var(--primary)); border-radius: 9px; }
.mh-kw-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.mh-used { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.mh-used .ic { opacity: .35; }
.mh-used:hover { border-color: var(--ok); color: var(--ok); }
.mh-used.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 650; }
.mh-used.on .ic { opacity: 1; }
.mh-kw-rel { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.mh-kw-rel[hidden] { display: none; }
.mh-kw-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); }
.mh-kw-chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-kw-chip.used { background: var(--ok-soft); }
.mh-kw-chip button { width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.mh-kw-chip button:hover { background: var(--bad-soft); color: var(--bad); }
.mh-kw-table th.ck, .mh-kw-table td.ck { width: 28px; }
.mh-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 4px; color: var(--muted); font-size: 13px; }

/* 底部操作条 */
.mh-bulk { position: fixed; left: calc(50% + var(--side) / 2); bottom: 22px; transform: translateX(-50%); z-index: 75; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; background: var(--ink); color: var(--panel); padding: 8px 10px 8px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - var(--side) - 40px); animation: mh-up .2s; }
.mh-bulk b { margin-right: 4px; font-size: 13px; white-space: nowrap; }
.mh-bulk .mh-btn { background: color-mix(in srgb, var(--panel) 12%, transparent); color: var(--panel); border-color: transparent; }
.mh-bulk .mh-btn:hover { background: color-mix(in srgb, var(--panel) 22%, transparent); color: var(--panel); }
.mh-bulk .mh-btn.danger { color: #FF9BA1; }
.mh-bulk .mh-icon-btn { color: var(--panel); }
.mh-bulk .mh-icon-btn:hover { background: color-mix(in srgb, var(--panel) 18%, transparent); color: var(--panel); }
body.has-bulk .mh-toasts { bottom: 86px; }
@keyframes mh-up { from { opacity: 0; transform: translate(-50%, 10px); } }

/* 弹出菜单 */
.mh-pop { position: fixed; z-index: 130; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.mh-pop button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.mh-pop button:hover, .mh-pop button:focus-visible { background: var(--panel-2); outline: 0; }
.mh-pop button.danger { color: var(--bad); }

/* 导入 */
.mh-dropzone.big { flex-direction: column; text-align: center; padding: 34px 18px; }
.mh-imp-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.mh-imp-files li { background: var(--panel-2); border-radius: 9px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* 写文章面板 */
.mh-drawer.wide { width: min(860px, 100vw); }
.mh-drawer-b > * + * { margin-top: 14px; }
.mh-kw-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--panel)), var(--panel-2)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); }
.mh-kw-hero small { color: var(--muted); font-size: 12px; }
.mh-kw-hero h3 { font-size: 22px; margin-top: 2px; }
.mh-kw-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.mh-kw-facts span { display: inline-flex; align-items: center; gap: 4px; }
.mh-kw-dup .mh-hint.warn { margin: 0 !important; }
.mh-kw-dup ul { margin: 6px 0 0 18px; padding: 0; }
.mh-sec-h small { font-weight: 400; font-size: 12px; }
.mh-sec-h .mh-btn { margin-left: auto; }
.mh-title-pick { display: grid; gap: 6px; }
.mh-title-pick:empty { display: none; }
.mh-title-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.mh-title-pick label:hover { border-color: var(--primary); }
.mh-title-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mh-title-pick input { accent-color: var(--primary); }
.mh-title-pick span { flex: 1; }
.mh-title-pick small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-rel-pick .mh-chip small { color: var(--muted); font-weight: 400; }
.mh-art-meta { padding: 12px 14px; border-radius: 10px; background: var(--panel-2); }
.mh-art-meta b { font-size: 16px; }
.mh-art-meta p { color: var(--ink-2); margin: 4px 0 2px !important; font-size: 13px; }
.mh-art-meta small { color: var(--muted); }
.mh-art-preview { border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px 14px; max-height: 56vh; overflow-y: auto; line-height: 1.75; font-size: 15px; }
.mh-art-preview h2 { font-size: 20px; margin: 20px 0 8px; }
.mh-art-preview h3 { font-size: 16.5px; margin: 16px 0 6px; }
.mh-art-preview table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.mh-art-preview th, .mh-art-preview td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.mh-art-preview.is-live { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.mh-live-head { white-space: pre-wrap; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }

/* 待办：每日文章卡片 */
.mh-daily { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mh-dcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; position: relative; overflow: hidden; background: var(--panel); }
.mh-dcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.mh-dcard.is-done { background: color-mix(in srgb, var(--ok) 4%, var(--panel)); }
.mh-dcard.is-off { opacity: .7; }
.mh-dc-h { display: flex; align-items: center; gap: 8px; }
.mh-dc-h b { font-size: 14.5px; }
.mh-dc-target { margin-left: auto; font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.mh-dc-h small { margin-left: auto; }
.mh-dc-st { display: flex; align-items: center; gap: 12px; }
.mh-dc-st b { display: block; font-size: 15px; }
.mh-dc-st small { color: var(--muted); font-size: 12px; }
.mh-dc-st small .bad { color: var(--bad); }
.mh-dc-st.ok > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.mh-dc-st.ok b { color: var(--ok); }
.mh-ring { width: 38px; height: 38px; border-radius: 50%; border: 3px dashed var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; }
.mh-dc-items { margin: 0; padding: 0 0 0 16px; font-size: 13px; display: grid; gap: 2px; }
.mh-dc-items a { color: var(--ink); }
.mh-strip { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; }
.mh-sq { aspect-ratio: 1; min-width: 0; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: var(--line-2); }
.mh-sq.done { background: var(--ok); }
.mh-sq.miss { background: color-mix(in srgb, var(--bad) 32%, var(--panel)); }
.mh-sq.sched { background: color-mix(in srgb, var(--primary) 55%, var(--panel)); }
.mh-sq.fut { background: var(--line-2); cursor: default; }
.mh-sq.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.mh-sq:disabled { cursor: default; }
.mh-sq:not(:disabled):hover { filter: brightness(.9); }
.mh-dc-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.mh-dc-foot b { color: var(--ink); }
.mh-dc-foot .ic { color: #E8590C; vertical-align: -2px; }
.mh-dc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.mh-spin-txt { font-size: 12.5px; }
.mh-spin-txt::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: mh-spin .8s linear infinite; vertical-align: -1px; }
@keyframes mh-spin { to { transform: rotate(360deg); } }

/* 待办：列表 */
.mh-todo-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; position: sticky; top: var(--mh-top-h, 68px); z-index: 10; background: var(--panel); padding: 6px 0; }
.mh-todo-add input[name=title] { flex: 1 1 280px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px; background: var(--panel); color: var(--ink); }
.mh-todo-add input[name=title]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: 0; }
.mh-todo-add select, .mh-todo-add input[type=date] { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--panel); color: var(--ink); font-size: 13px; }
.mh-todo-add .mh-btn { height: 40px; }
.mh-todo-g { margin-top: 10px; }
.mh-todo-g h3, .mh-todo-g summary { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin: 0 0 4px; cursor: default; }
.mh-todo-g summary { cursor: pointer; padding: 6px 0; }
.mh-todo-g.is-over h3 { color: var(--bad); }
.mh-todos { list-style: none; margin: 0; padding: 0; }
.mh-todo { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--line-2); border-radius: 8px; }
.mh-todo:hover { background: var(--panel-2); }
.mh-todo-ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; flex: none; }
.mh-todo-ck:hover { border-color: var(--ok); color: color-mix(in srgb, var(--ok) 50%, transparent); }
.mh-todo-ck[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.mh-todo-b { flex: 1; min-width: 0; }
.mh-todo-t { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; font-size: 14px; }
.mh-todo-t:hover { color: var(--primary); }
.mh-todo.is-done .mh-todo-t { color: var(--muted); text-decoration: line-through; }
.mh-todo-ms { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.mh-todo-meta { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px; }
.mh-todo-meta.bad { color: var(--bad); font-weight: 600; }
.mh-todo .mh-icon-btn { opacity: 0; }
.mh-todo:hover .mh-icon-btn, .mh-todo .mh-icon-btn:focus-visible { opacity: 1; }
.mh-todo-empty { padding: 20px 0; text-align: center; }

/* 仪表盘顶部的“今天” */
.mh-today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin: 4px 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.mh .mh-today:hover { border-color: var(--primary); color: var(--ink); }
.mh-today > b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; margin-right: 4px; }
.mh-today-i { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--bad)) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c, var(--bad)) 26%, transparent); color: var(--ink-2); }
.mh-today-i.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.mh-today-i.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.mh-today-go { margin-left: auto; color: var(--muted); }

@media (max-width: 1180px) {
	.mh-kw-head, .mh-kw-row { grid-template-columns: 28px minmax(0, 1fr) 76px 56px 76px 96px 224px; }
	.mh-kw-row > [data-label="谷歌排名"], .mh-kw-head > :nth-child(6) { display: none; }
}
@media (max-width: 860px) {
	.mh-bulk { left: 50%; max-width: calc(100vw - 20px); bottom: 12px; }
	.mh-check-list { grid-template-columns: 1fr; }
	.mh-kw-head { display: none; }
	.mh-kw-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-auto-flow: row; row-gap: 6px; }
	.mh-kw-row > [data-label] { grid-column: 2 / 3; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; }
	.mh-kw-row > [data-label]::before { content: attr(data-label); color: var(--muted); min-width: 52px; }
	.mh-kw-row > [data-label="谷歌排名"] { display: inline-flex; }
	.mh-kw-act { grid-column: 2 / -1; justify-content: flex-start; }
	.mh-kw-tools select { flex: 1 1 140px; max-width: none; }
	.mh-kw-search { max-width: none; }
	.mh-todo-add { position: static; }
	.mh-todo .mh-icon-btn { opacity: 1; }
	.mh-daily { grid-template-columns: 1fr; }
}

/* v0.5 细节 */
.mh-compose-side .mh-hint { margin: 6px 0 18px !important; }
.mh-compose-side .mh-hint.warn { margin: 10px 0 18px !important; }
.mh-dc-foot span { display: inline-flex; align-items: center; gap: 4px; }
.mh-kw-dup .mh-hint .ic { display: inline-block; vertical-align: -2px; }
.mh-drawer-b .mh-hint { margin: 0 !important; }
@media (max-width: 860px) {
	.mh-kw-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 12px 2px; }
	.mh-kw-row > .mh-kw-ck { order: 0; flex: 0 0 22px; }
	.mh-kw-row > .mh-kw-main { flex: 1 1 calc(100% - 44px); min-width: 0; order: 1; }
	.mh-kw-row > [data-label] { order: 2; flex: none; font-size: 12.5px; padding-left: 34px; margin-right: -22px; }
	.mh-kw-row > [data-label]::before { min-width: 0; }
	.mh-kw-row > .mh-kw-num small { display: none; }
	.mh-kw-row > .mh-kw-score i { display: none; }
	.mh-kw-act { order: 3; flex: 1 1 100%; padding-left: 34px; }
	.mh-kw-rel { order: 4; flex: 1 1 100%; padding-left: 34px; }
}

/* 彩色菜单图标 + 站点 favicon */
.mh-nav-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-style: normal; color: var(--ic); background: color-mix(in srgb, var(--ic) 12%, transparent); transition: background .15s, color .15s, transform .15s; }
.mh-nav a { padding: 6px 10px 6px 7px; }
.mh-nav a:hover .mh-nav-ic { background: color-mix(in srgb, var(--ic) 20%, transparent); }
.mh-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ic) 10%, var(--panel)); color: var(--ink); }
.mh-nav a[aria-current="page"] .mh-nav-ic { background: var(--ic); color: #fff; box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--ic) 70%, transparent); }
:root[data-mh-theme="dark"] .mh-nav-ic { background: color-mix(in srgb, var(--ic) 22%, transparent); color: color-mix(in srgb, var(--ic) 70%, #fff); }

.mh-fab-menu [style*="--ic"] .ic { color: var(--ic); }
.mh-favi { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; flex: none; background: #fff; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.mh-favi.big { width: 26px; height: 26px; border-radius: 7px; padding: 2px; }
.mh-sitechips a .mh-favi { width: 16px; height: 16px; border-radius: 4px; }
.mh-sitechips a[aria-selected="true"] .mh-favi { box-shadow: 0 0 0 1.5px #fff; }
.mh-pal-item .mh-favi { width: 16px; height: 16px; }

/* =====================================================================
 * v0.6 视觉：参考 Apple 的 macOS / iOS 设计
 *  - 系统色、毛玻璃材质、细边框、柔和阴影、大圆角
 *  - iOS“设置”式的彩色图标块；Spotlight 式搜索
 * ===================================================================== */
:root {
	--font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--bg: #F5F5F7; --panel: #FFFFFF; --panel-2: #F5F5F7; --ink: #1D1D1F; --ink-2: #48484A; --muted: #86868B;
	--line: rgba(0, 0, 0, .09); --line-2: rgba(0, 0, 0, .055);
	--primary: #0071E3; --primary-2: #0062C4; --primary-soft: rgba(0, 113, 227, .1);
	--ok: #1A8D3F; --ok-soft: rgba(52, 199, 89, .14); --bad: #E0301E; --bad-soft: rgba(255, 59, 48, .1); --warn: #B25E00; --warn-soft: rgba(255, 149, 0, .13);
	--fill: rgba(118, 118, 128, .12); --fill-2: rgba(118, 118, 128, .2);
	--glass: rgba(255, 255, 255, .72); --glass-side: rgba(246, 246, 248, .78);
	--shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px -8px rgba(0, 0, 0, .08);
	--shadow-lg: 0 0 0 .5px rgba(0, 0, 0, .06), 0 12px 32px -8px rgba(0, 0, 0, .18), 0 32px 80px -24px rgba(0, 0, 0, .22);
	--ring: 0 0 0 4px rgba(0, 113, 227, .22);
}
:root[data-mh-theme="dark"] {
	--bg: #000000; --panel: #1C1C1E; --panel-2: #2C2C2E; --ink: #F5F5F7; --ink-2: #C7C7CC; --muted: #98989D;
	--line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .07);
	--primary: #0A84FF; --primary-2: #409CFF; --primary-soft: rgba(10, 132, 255, .18);
	--ok: #30D158; --ok-soft: rgba(48, 209, 88, .16); --bad: #FF453A; --bad-soft: rgba(255, 69, 58, .16); --warn: #FF9F0A; --warn-soft: rgba(255, 159, 10, .16);
	--fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
	--glass: rgba(30, 30, 32, .72); --glass-side: rgba(22, 22, 24, .8);
	--shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-lg: 0 0 0 .5px rgba(255, 255, 255, .1), 0 24px 60px -12px rgba(0, 0, 0, .7);
	--ring: 0 0 0 4px rgba(10, 132, 255, .35);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-mh-theme="light"]) {
		--bg: #000000; --panel: #1C1C1E; --panel-2: #2C2C2E; --ink: #F5F5F7; --ink-2: #C7C7CC; --muted: #98989D;
		--line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .07);
		--primary: #0A84FF; --primary-2: #409CFF; --primary-soft: rgba(10, 132, 255, .18);
		--ok: #30D158; --ok-soft: rgba(48, 209, 88, .16); --bad: #FF453A; --bad-soft: rgba(255, 69, 58, .16); --warn: #FF9F0A; --warn-soft: rgba(255, 159, 10, .16);
		--fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
		--glass: rgba(30, 30, 32, .72); --glass-side: rgba(22, 22, 24, .8);
		--shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4);
		--shadow-lg: 0 0 0 .5px rgba(255, 255, 255, .1), 0 24px 60px -12px rgba(0, 0, 0, .7);
		--ring: 0 0 0 4px rgba(10, 132, 255, .35);
	}
}
body { font-size: 14px; letter-spacing: -.005em; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.mh h1, .mh h2, .mh h3 { font-weight: 600; letter-spacing: -.015em; }
.mh ::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); }
.mh input[type=checkbox], .mh input[type=radio] { accent-color: var(--primary); }

/* 焦点：只给键盘操作时的按钮和链接加光圈；输入框用自己的样式 */
.mh :focus-visible { outline: 0; box-shadow: var(--ring); border-radius: 8px; }
.mh input:focus-visible, .mh textarea:focus-visible, .mh select:focus-visible, .mh [contenteditable]:focus-visible { box-shadow: none; }
.mh .mh-field input, .mh .mh-field select, .mh .mh-tags-input { border-radius: 10px; }
.mh-field input:focus, .mh-field select:focus, .mh-tags-input:focus, .mh textarea:focus, .mh-todo-add input[name=title]:focus { box-shadow: var(--ring) !important; border-color: var(--primary); }
.mh-kw-search:focus-within { box-shadow: var(--ring); }

/* 细滚动条（Windows 上也不显示粗的系统滚动条） */
.mh *, .mh-pal-list, .mh-drawer-b { scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
.mh ::-webkit-scrollbar { width: 10px; height: 10px; }
.mh ::-webkit-scrollbar-track { background: transparent; }
.mh ::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.mh ::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
.mh ::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* 侧栏：半透明材质 */
.mh-side { background: var(--glass-side); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-right: .5px solid var(--line); padding: 18px 12px 12px; }
.mh-brand { font-weight: 650; letter-spacing: -.01em; font-size: 15px; padding: 2px 8px 16px; }
.mh-search-btn { background: var(--fill); border: 0; border-radius: 10px; padding: 7px 10px; color: var(--muted); font-size: 13.5px; transition: background .15s; }
.mh-search-btn:hover { background: var(--fill-2); color: var(--ink-2); }
.mh-search-btn kbd { background: transparent; border: 0; padding: 0; font-size: 12px; color: var(--muted); }
.mh-nav { gap: 1px; }
.mh-nav a { gap: 10px; padding: 5px 10px 5px 6px; border-radius: 8px; color: var(--ink); font-weight: 450; font-size: 14px; transition: background .12s; }
.mh-nav a:hover { background: var(--fill); color: var(--ink); }
.mh-nav-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--ic) !important; color: #fff !important; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 1.5px rgba(0, 0, 0, .12); background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)) !important; }
.mh-nav-ic .ic { width: 16px; height: 16px; stroke-width: 2; }
.mh-nav a[aria-current="page"] { background: var(--fill-2); color: var(--ink); font-weight: 600; }
.mh-nav a[aria-current="page"] .mh-nav-ic { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 6px -1px color-mix(in srgb, var(--ic) 60%, transparent); }
:root[data-mh-theme="dark"] .mh-nav-ic { color: #fff !important; }
.mh-nav-badge { background: #FF3B30; height: 19px; min-width: 19px; font-size: 11px; box-shadow: 0 1px 2px rgba(255, 59, 48, .35); }
.mh-side-h { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 20px 10px 4px; letter-spacing: .01em; }
.mh-sitelist a { border-radius: 8px; }
.mh-sitelist a:hover { background: var(--fill); }
.mh-side-foot { border-top: .5px solid var(--line); }
.mh-avatar { background: linear-gradient(180deg, #A0A0A8, #7C7C84); color: #fff; font-weight: 600; }

/* 顶部栏 */
.mh-top { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid transparent; }
.mh-top.is-stuck { border-bottom-color: var(--line); }
.mh-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -.022em; }
.mh-title p { font-size: 12.5px; color: var(--muted); }

/* 卡片 */
.mh-panel, .mh-kpi { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.mh-panel { padding: 20px 22px; }
.mh-panel-h h2 { font-size: 16px; font-weight: 650; }
.mh-kpi { padding: 18px 20px; }
.mh-kpi-k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mh-kpi-v { font-size: 30px; font-weight: 650; letter-spacing: -.03em; font-feature-settings: "tnum"; }
.mh-empty { border: 0; box-shadow: var(--shadow); border-radius: 20px; }
.mh-today { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.mh .mh-today:hover { box-shadow: var(--shadow), 0 0 0 1px var(--primary); }
.mh-dcard { border: 0; background: var(--panel-2); border-radius: 16px; }
.mh-dcard::before { display: none; }
.mh-dcard .mh-dc-h b { font-weight: 650; }
.mh-dcard.is-done { background: color-mix(in srgb, var(--ok) 8%, var(--panel-2)); }
.mh-table th { font-weight: 500; color: var(--muted); border-bottom: .5px solid var(--line); }
.mh-table td { border-bottom: .5px solid var(--line-2); }
.mh-kw-row, .mh-todo { border-bottom: .5px solid var(--line-2); }
.mh-kw-row:hover, .mh-table tbody tr:hover td, .mh-todo:hover { background: color-mix(in srgb, var(--fill) 45%, transparent); }
.mh-kw-tools { border-bottom: .5px solid var(--line); border-radius: 18px 18px 0 0; }

/* 按钮：主按钮系统蓝；次要按钮灰色填充 */
.mh-btn { border: 0; background: var(--fill); color: var(--ink); border-radius: 10px; font-weight: 550; box-shadow: none; transition: background .15s, transform .1s, opacity .15s; }
.mh-btn:hover { background: var(--fill-2); border: 0; }
.mh-btn:active { transform: scale(.98); }
.mh-btn-primary, .mh a.mh-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.mh-btn-primary:hover, .mh a.mh-btn-primary:hover { background: var(--primary-2); }
.mh-btn-primary:disabled { background: var(--fill); color: var(--muted); box-shadow: none; }
.mh-btn-ghost { background: transparent; }
.mh-btn-ghost:hover { background: var(--fill); }
.mh-btn.danger, .mh-btn-ghost.danger { color: var(--bad); }
.mh-icon-btn { border-radius: 9px; transition: background .12s; }
.mh-icon-btn:hover, .mh a.mh-icon-btn:hover { background: var(--fill); }
.mh-used { border: 0; background: var(--fill); }
.mh-used:hover { background: var(--ok-soft); color: var(--ok); }

/* 表单 */
.mh-field input, .mh-field select, .mh-tags-input, .mh textarea, .mh-todo-add input[name=title], .mh-todo-add select, .mh-todo-add input[type=date], .mh-kw-tools select, .mh-kw-search { border: .5px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: inset 0 .5px 1px rgba(0, 0, 0, .03); transition: box-shadow .15s, border-color .15s; }
:root[data-mh-theme="dark"] .mh-field input, :root[data-mh-theme="dark"] .mh-field select, :root[data-mh-theme="dark"] .mh-tags-input, :root[data-mh-theme="dark"] .mh textarea { background: var(--panel-2); }
.mh-field > span { font-weight: 550; color: var(--ink-2); font-size: 13px; }
.mh-title-input { font-size: 22px !important; font-weight: 650; letter-spacing: -.02em; border-bottom: .5px solid var(--line) !important; }

/* iOS 分段控件 */
.mh-seg { background: var(--fill); border: 0; border-radius: 9px; padding: 2px; gap: 0; }
.mh-seg span { border-radius: 7px; padding: 5px 10px; font-size: 13px; color: var(--ink); font-weight: 500; transition: background .15s; }
.mh-seg input:checked + span { background: var(--panel); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
:root[data-mh-theme="dark"] .mh-seg input:checked + span { background: #636366; }

/* 胶囊 / 选择条 */
.mh-pill { border: 0; background: var(--fill); font-weight: 600; }
.mh-sitechips { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mh-sitechips a, .mh-filter a { border: 0; background: var(--fill); color: var(--ink); font-weight: 500; transition: background .12s; }
.mh-sitechips a:hover, .mh-filter a:hover { background: var(--fill-2); }
.mh-sitechips a[aria-selected="true"], .mh-filter a[aria-current="true"] { background: var(--ink); color: var(--panel); }
.mh-chip span { border: 0; background: var(--fill); color: var(--ink); }
.mh-chip input:checked + span { background: color-mix(in srgb, var(--c, var(--primary)) 16%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--primary)) 45%, transparent); }
.mh-code { border: 0; background: var(--fill); }

/* 右侧面板（Sheet） */
.mh-drawer-scrim { background: rgba(0, 0, 0, .25); }
.mh-drawer { border-radius: 18px 0 0 18px; box-shadow: var(--shadow-lg); }
.mh-drawer-h { border-bottom: .5px solid var(--line); padding: 16px 20px 16px 24px; }
.mh-drawer-h h2 { font-size: 17px; font-weight: 650; }
.mh-drawer-f { border-top: .5px solid var(--line); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-radius: 0 0 0 18px; }

/* 提示条：iOS 风格的半透明深色 HUD */
.mh-toast { border: 0; border-radius: 14px; background: rgba(40, 40, 44, .86); color: #fff; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35); padding: 11px 14px; }
.mh-toast .ic { color: #30D158; }
.mh-toast.err .ic { color: #FF6961; }
.mh-toast button { color: rgba(255, 255, 255, .6); }
.mh-toast button:hover { color: #fff; }

/* 悬浮按钮和菜单 */
.mh-fab-btn { border-radius: 50%; background: var(--primary); box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--primary) 60%, transparent), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.mh-fab.open .mh-fab-btn { transform: rotate(45deg); }
.mh-fab-menu, .mh-pop { border: 0; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); box-shadow: var(--shadow-lg); padding: 5px; }
.mh-fab-menu a, .mh-fab-menu button, .mh-pop button { border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.mh-fab-menu a:hover, .mh-fab-menu button:hover, .mh-pop button:hover, .mh-pop button:focus-visible { background: var(--primary); color: #fff !important; box-shadow: none; }
.mh-fab-menu a:hover .ic, .mh-fab-menu button:hover .ic, .mh-pop button:hover .ic { color: #fff; }

/* 底部批量操作条 */
.mh-bulk { background: var(--glass); color: var(--ink); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); box-shadow: var(--shadow-lg); border-radius: 16px; }
.mh-bulk .mh-btn { background: var(--fill); color: var(--ink); }
.mh-bulk .mh-btn:hover { background: var(--fill-2); color: var(--ink); }
.mh-bulk .mh-btn.danger { color: var(--bad); }
.mh-bulk .mh-icon-btn { color: var(--ink-2); }
.mh-bulk .mh-icon-btn:hover { background: var(--fill); color: var(--ink); }

/* ---------- Spotlight 式搜索 ---------- */
.mh-pal-scrim { background: rgba(0, 0, 0, .16); -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 14vh; animation: mh-fade .12s; }
.mh-pal { width: min(640px, 100%); border: 0; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px); box-shadow: var(--shadow-lg); animation: mh-pop .16s cubic-bezier(.2, .9, .3, 1.2); display: flex; flex-direction: column; max-height: 72vh; }
@keyframes mh-pop { from { opacity: 0; transform: scale(.97) translateY(-6px); } }
.mh-pal-in { gap: 12px; padding: 0 18px; border-bottom: .5px solid var(--line); color: var(--muted); flex: none; }
.mh-pal-in > .ic { width: 22px; height: 22px; }
.mh .mh-pal-in input, .mh-pal-in input { flex: 1; min-width: 0; height: 60px; border: 0 !important; box-shadow: none !important; outline: 0 !important; background: transparent; font-size: 21px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); padding: 0; border-radius: 0; }
.mh-pal-in input::placeholder { color: var(--muted); }
.mh-pal-in kbd { flex: none; background: var(--fill); border: 0; color: var(--muted); padding: 4px 7px; border-radius: 6px; font-size: 11.5px; }
.mh-pal-list { flex: 1; min-height: 0; max-height: none; padding: 6px 8px 8px; }
.mh-pal-g { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 10px 4px; letter-spacing: .01em; }
.mh-pal-item { gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; min-height: 42px; }
.mh-pal-item > span:not(.mh-swatch):not(.mh-pal-enter) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-pal-item small { margin-left: 0; flex: none; font-size: 12.5px; }
.mh-pal-item > .ic { color: var(--muted); }
.mh-pal-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--ic, #8E8E93) linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); color: #fff; font-style: normal; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); }
.mh-pal-ic .ic { width: 15px; height: 15px; stroke-width: 2; }
.mh-pal-item .mh-favi { width: 26px; height: 26px; border-radius: 7px; padding: 3px; }
.mh-pal-item .mh-swatch { width: 26px; height: 26px; border-radius: 7px; box-shadow: none; }
.mh-pal-item .mh-pal-enter { display: none; flex: none; font-size: 12px; opacity: .8; }
.mh-pal-item[aria-selected="true"] { background: var(--primary); color: #fff; }
.mh-pal-item[aria-selected="true"] small, .mh-pal-item[aria-selected="true"] > .ic { color: rgba(255, 255, 255, .8); }
.mh-pal-item[aria-selected="true"] .mh-pal-enter { display: inline; }
.mh-pal-empty { padding: 36px 20px; font-size: 14px; }
.mh-pal-foot { gap: 16px; padding: 9px 18px; border-top: .5px solid var(--line); flex: none; }
.mh-pal-foot kbd { background: var(--fill); border: 0; padding: 2px 6px; border-radius: 5px; }

/* 登录页 */
.mh-login { background: radial-gradient(900px 520px at 15% -10%, rgba(0, 113, 227, .14), transparent 60%), radial-gradient(800px 500px at 100% 110%, rgba(175, 82, 222, .12), transparent 60%), var(--bg); }
.mh-login-card { border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); padding: 34px 30px 24px; }
.mh-login-card .mh-btn-block { height: 42px; font-size: 15px; border-radius: 12px; }

/* 骨架屏 */
.mh-skel-row { border: 0; border-radius: 18px; }

/* 统一动画手感 */
.mh-drawer { animation-timing-function: cubic-bezier(.32, .72, 0, 1); animation-duration: .38s; }
@media (max-width: 860px) {
	.mh-drawer { border-radius: 0; }
	.mh-pal-scrim { padding-top: 8vh; }
	.mh-pal-in input { font-size: 18px; height: 54px; }
}

/* 关键词中文 */
.mh-zh-toggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border: 0; border-radius: 10px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s; }
.mh-zh-toggle b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); font-size: 12px; box-shadow: 0 0 0 .5px var(--line); }
.mh-zh-toggle:hover { background: var(--fill-2); }
.mh-zh-toggle.on { background: var(--primary-soft); color: var(--primary); }
.mh-zh-toggle.on b { background: var(--primary); color: #fff; box-shadow: none; }
.mh-zh-toggle.is-busy b { animation: mh-pulse 1s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: .4; } }
.mh-kw-zh { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.mh-kw-table .mh-kw-zh { display: block; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.mh-kw-chip em, .mh-rel-pick em { font-style: normal; color: var(--ink-2); font-size: 12px; }
.mh-kw-hero-zh { margin: 4px 0 0 !important; color: var(--ink-2); font-size: 14px; }

.mh-kw-name .mh-kw-zh { order: 9; flex-basis: 100%; margin: 1px 0 0; font-size: 13px; color: var(--ink-2); }

/* 内链 / 目录 / AI 优化 */
.mh-ed-div { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.mh-ed-bar .mh-ed-x { display: inline-flex; align-items: center; gap: 5px; }
.mh-ed-bar .mh-ed-ai { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 8px; border: 0; color: #fff; font-weight: 600; background: linear-gradient(135deg, #AF52DE, #007AFF); box-shadow: 0 2px 8px -2px rgba(88, 86, 214, .5); margin-right: 6px; }
.mh-ed-bar .mh-ed-ai:hover { color: #fff; filter: brightness(1.08); background: linear-gradient(135deg, #AF52DE, #007AFF); }
.mh-ln-sel { margin: 0 0 6px !important; display: flex; align-items: center; gap: 6px; }
.mh-ln-sug, .mh-ln-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mh-ln-sug li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.mh-ln-sug li > div { flex: 1; min-width: 0; }
.mh-ln-ctx { margin: 0 0 2px !important; font-size: 13.5px; color: var(--ink-2); }
.mh-ln-ctx mark { background: color-mix(in srgb, #FFCC00 45%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.mh-ln-sug small { color: var(--muted); font-size: 12px; }
.mh-ln-empty { padding: 6px 0; }
.mh-ln-tools { display: grid; gap: 8px; }
.mh-ln-tools .mh-kw-search { max-width: none; }
.mh .mh-ln-types { position: static; padding: 0; background: none; }
.mh-ln-list li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: .5px solid var(--line-2); }
.mh-ln-list .mh-ln-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mh-ln-list li.is-on .mh-ln-t { color: var(--muted); }
.mh-opt-hero { padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, #AF52DE 12%, var(--panel)), color-mix(in srgb, #007AFF 10%, var(--panel))); }
.mh-opt-hero b { display: block; font-size: 16px; }
.mh-opt-hero small { color: var(--muted); }
.mh-opt-list { display: grid; gap: 6px; }
.mh-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); cursor: pointer; }
.mh-opt input { margin-top: 3px; width: 16px; height: 16px; }
.mh-opt b { display: block; font-weight: 600; font-size: 14px; }
.mh-opt small { color: var(--muted); font-size: 12.5px; }
.mh-opt:has(input:checked) { background: color-mix(in srgb, var(--primary) 9%, var(--panel-2)); }
.mh-opt-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.mh-opt-changes li { display: flex; gap: 6px; align-items: flex-start; }
.mh-opt-changes .ic { color: var(--ok); margin-top: 3px; }
.mh-ai-done { color: #AF52DE; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.mh-ed-area ol:has(a[href^="#"]) { background: var(--panel-2); border-radius: 10px; padding: 10px 14px 10px 34px; }

.mh-ed-bar { gap: 2px; }
.mh-ed-bar button { padding: 0 8px; }
.mh-ed-count { font-size: 11.5px; margin: 0 6px; white-space: nowrap; }
.mh-ed-bar .mh-ed-html { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* 更新与数据、导入选站 */
.mh-sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.mh-sys-card { background: var(--panel-2); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.mh-sys-card h3 { font-size: 14.5px; }
.mh-sys-card p { margin: 0 !important; }
.mh-sys-card .mh-dropzone.is-busy { opacity: .7; pointer-events: none; }
.mh-row-btns label.mh-btn { cursor: pointer; }
.mh-imp-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mh-imp-site { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill); cursor: pointer; position: relative; }
.mh-imp-site input { position: absolute; opacity: 0; pointer-events: none; }
.mh-imp-site span { min-width: 0; }
.mh-imp-site b { display: block; font-size: 14px; }
.mh-imp-site small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-imp-site:has(input:checked) { background: color-mix(in srgb, var(--c) 12%, var(--panel)); box-shadow: inset 0 0 0 2px var(--c); }
.mh-imp-site:has(input:focus-visible) { box-shadow: var(--ring); }
@media (max-width: 860px) { .mh-sys-grid { grid-template-columns: 1fr; } }

/* 关键词页：筛选栏和列名一直可见 */
.mh .mh-sitechips.no-stick { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mh-kw-tools { z-index: 25; background: color-mix(in srgb, var(--panel) 97%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.mh-kw-head { position: sticky; top: calc(var(--mh-top-h, 68px) + var(--kw-tools-h, 0px) - 1px); z-index: 24; background: color-mix(in srgb, var(--panel) 97%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

/* 发到课程 */
.mh-target:empty { display: none; }
.mh-target { margin-bottom: 18px; }
.mh-target .mh-seg { margin-bottom: 10px; }
.mh-tg { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel-2); }
.mh-tg .mh-field select { height: 38px; font-size: 13.5px; }
.mh-tg-sum { margin: 0 !important; font-size: 13px; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.mh-target > .mh-hint { margin: 8px 0 0 !important; }
.mh-post-only[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.mh *, .mh *::before, .mh *::after { animation: none !important; transition: none !important; }
}

/* 发到哪个站：下拉 */
.mh-pick-dd { position: relative; margin-bottom: 6px; }
.mh-pick-sum { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill, var(--panel)); cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s; }
.mh-pick-sum::-webkit-details-marker { display: none; }
.mh-pick-sum:hover { border-color: color-mix(in srgb, var(--accent, #007AFF) 45%, var(--line)); }
.mh-pick-dd[open] > .mh-pick-sum { border-color: var(--accent, #007AFF); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #007AFF) 18%, transparent); }
.mh-pick-sum > svg { margin-left: auto; flex: none; color: var(--muted); transition: transform .2s; }
.mh-pick-dd[open] > .mh-pick-sum > svg { transform: rotate(180deg); }
.mh-pick-on { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.mh-pick-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mh-pick-chip b { font-size: 13.5px; white-space: nowrap; }
.mh-pick-chip small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-pick-dd > .mh-pick { margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: mhDd .16s ease-out; }
.mh-pick-dd .mh-pick-item { border-color: transparent; }
@keyframes mhDd { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 写文章：用作标题、标题中文 */
.mh-use-title { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 2px 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 12px; font-weight: 600; line-height: 18px; cursor: pointer; opacity: .75; transition: opacity .15s, background .15s; white-space: nowrap; }
.mh-use-title:hover { opacity: 1; background: color-mix(in srgb, var(--primary) 24%, transparent); }
.mh-kw-hero .mh-use-title { margin: 10px 0 0; padding: 4px 12px; font-size: 13px; }
.mh-rel-pick .mh-chip { align-items: center; }
.mh-title-pick span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-title-pick span b { font-weight: 500; }
.mh-title-pick span em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.mh-title-del { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.mh-title-pick label:hover .mh-title-del, .mh-title-del:focus-visible { opacity: 1; }
.mh-title-del:hover { background: color-mix(in srgb, var(--danger, #FF3B30) 14%, transparent); color: var(--danger, #FF3B30); }
@media (hover: none) { .mh-title-del { opacity: .7; } }

/* 导入：AI 整理选项 */
.mh-imp-ai { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); }
.mh-imp-ai [data-ai-opts] { display: grid; gap: 8px; padding-left: 26px; }
.mh-imp-ai [data-ai-opts][hidden] { display: none; }
.mh-imp-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mh-imp-files { max-height: 220px; overflow: auto; }

/* 整理进度 */
.mh-run-steps { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 10px; }
.mh-run-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.mh-run-steps li i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.mh-run-steps li span { display: grid; gap: 2px; }
.mh-run-steps li small { font-size: 12.5px; }
.mh-run-steps li.run { color: var(--ink); }
.mh-run-steps li.run i { border-color: var(--primary); border-right-color: transparent; animation: mhSpin .8s linear infinite; }
.mh-run-steps li.done { color: var(--ink); }
.mh-run-steps li.done i { border-color: var(--ok, #34C759); background: var(--ok, #34C759) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mh-run-bar { height: 6px; border-radius: 99px; background: var(--fill, var(--line)); overflow: hidden; }
.mh-run-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .4s ease; }
@keyframes mhSpin { to { transform: rotate(360deg); } }

/* 整理报告 */
.mh-rep-hero { padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--panel)), var(--panel)); border: 1px solid var(--line); margin-bottom: 14px; }
.mh-rep-hero small { color: var(--muted); }
.mh-rep-hero h3 { margin: 4px 0 2px; font-size: 19px; }
.mh-rep-hero p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.mh-rep-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.mh-rep-tile { padding: 12px 14px; border-radius: 12px; background: var(--fill, var(--panel)); }
.mh-rep-tile b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mh-rep-tile span { font-size: 12.5px; color: var(--muted); }
.mh-rep-tile.warn b { color: var(--warn, #FF9500); }
.mh-rep-tile.ok b { color: var(--ok, #34C759); }
.mh-rep-files td, .mh-rep-files th { white-space: nowrap; }
.mh-rep-files td:first-child { white-space: normal; }
.mh-rep-pct { display: inline-block; vertical-align: middle; width: 54px; height: 6px; border-radius: 99px; background: var(--fill, var(--line)); overflow: hidden; }
.mh-rep-pct i { display: block; height: 100%; background: var(--warn, #FF9500); }
.mh-rep-tools { display: grid; gap: 8px; margin-bottom: 10px; }
.mh-rep-drop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 460px; overflow: auto; padding: 2px; }
.mh-rep-kw { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.mh-rep-kw:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mh-rep-kw input { margin-top: 3px; accent-color: var(--primary); }
.mh-rep-kw span { display: grid; gap: 2px; min-width: 0; }
.mh-rep-kw b { font-weight: 500; font-size: 13.5px; word-break: break-all; }
.mh-rep-kw small { color: var(--muted); font-size: 12px; }
.mh-rep-kw.is-back { opacity: .55; cursor: default; }
.mh-rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mh-rep-list button { width: 100%; text-align: left; display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; font: inherit; }
.mh-rep-list button:hover { border-color: var(--primary); }
.mh-rep-list small, .mh-rep-list span { color: var(--muted); font-size: 12.5px; }
.mh-imp-ai textarea { font: inherit; }
.mh-check-2 { display: flex; align-items: flex-start; gap: 8px; }
.mh-check-2 input { margin-top: 3px; }
.mh-check-2 span { display: grid; gap: 1px; }
.mh-check-2 small { font-size: 12.5px; }

/* 关键词中心：整页拖入导入 */
.mh-page-drop { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--primary, #007AFF) 10%, rgba(0,0,0,.38)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .15s; }
.mh-page-drop.on { opacity: 1; }
.mh-page-drop > div { display: grid; justify-items: center; gap: 10px; width: min(560px, 100%); padding: 48px 28px; border: 2.5px dashed var(--primary, #007AFF); border-radius: 24px; background: var(--panel, #fff); color: var(--primary, #007AFF); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); transform: scale(.97); transition: transform .15s; }
.mh-page-drop.on > div { transform: none; }
.mh-page-drop b { font-size: 20px; color: var(--ink, #000); }
.mh-page-drop span { font-size: 13.5px; color: var(--muted, #888); }
.mh-kw-drop { max-width: 640px; margin: 18px auto 6px; width: 100%; box-sizing: border-box; }
.mh-kw-drop svg { color: var(--primary); }

/* 标签 */
.mh-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; vertical-align: middle; }
.mh-tag::before { content: "#"; opacity: .55; }
.mh-tag.more::before { content: none; }
.mh-tag.more { background: var(--fill); color: var(--muted); }
.mh-tag.add { margin: 0; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.mh-tag.add::before { content: none; }
.mh-tag.add:hover { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.mh-imp-files li .mh-tag, .mh-tag-manage .mh-tag, .mh-rep-hero .mh-tag, .mh-okbox .mh-tag { margin: 0 4px 0 0; }
.mh-tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 10px; font-size: 12.5px; }
.mh-tag-row:empty { display: none; }
.mh-imp-tags { margin: 14px 0; }
.mh-imp-dirpick { margin: 6px 0 0; text-align: center; font-size: 13px; }
.mh-imp-dirpick label { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.mh-kw-tags { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.mh-kw-tags a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 500; }
.mh-kw-tags a small { color: var(--muted); font-weight: 400; }
.mh-kw-tags a:hover { background: var(--fill-2); }
.mh-kw-tags a[aria-current="true"] { background: var(--primary); color: #fff; }
.mh-kw-tags a[aria-current="true"] small { color: rgba(255,255,255,.8); }
.mh-kw-tags .mh-link { margin-left: 4px; font-size: 13px; }
.mh-tag-manage { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mh-tag-manage li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.mh-tag-manage .mh-tag { font-size: 13px; padding: 3px 10px; }
.mh-kw-tagline .mh-tag:first-child { margin-left: 0; }
.mh-kw-tagline { margin-right: 6px; }
.mh-imp-tags { padding: 14px; border-radius: 14px; background: var(--fill); }
.mh-imp-tags .mh-field { margin-bottom: 8px; }

/* 关键词工具栏：三行，分区清楚 */
.mh .mh-kw-tools { display: grid; gap: 12px; padding: 16px 20px 14px; }
.mh-kw-tr1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mh-kw-tr1 .mh-kw-search { flex: 1 1 auto; max-width: none; height: 36px; }
.mh-kw-tr1 .mh-seg, .mh-kw-tr1 .mh-zh-toggle { flex: none; height: 36px; }
.mh-kw-sort { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mh-kw-sort select { height: 36px; max-width: 190px; }
.mh-kw-tr2 { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.mh .mh-kw-st { order: 0; flex: none; position: static; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fill); }
.mh .mh-kw-st a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--ink-2, var(--ink)); font-size: 13px; font-weight: 500; transition: background .15s, color .15s, box-shadow .15s; }
.mh .mh-kw-st a small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh .mh-kw-st a:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.mh .mh-kw-st a[aria-current="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.mh-kw-fl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mh-kw-fl select { height: 34px; }
.mh-kw-tagrow { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: .5px solid var(--line); min-width: 0; }
.mh-kw-tagrow-h { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mh .mh-kw-tags { flex: 1 1 auto; flex-basis: auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
.mh .mh-kw-tags::-webkit-scrollbar { display: none; }
.mh .mh-kw-tags a { flex: none; height: 30px; padding: 0 12px; gap: 6px; border-radius: 99px; border: .5px solid var(--line); background: var(--panel); }
.mh .mh-kw-tags a small { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mh .mh-kw-tags a.none { border-style: dashed; color: var(--muted); }
.mh .mh-kw-tags a[aria-current="true"] { border-color: var(--primary); }
.mh-kw-tagrow [data-tag-manage] { flex: none; }
@media (max-width: 760px) {
	.mh-kw-tr1 { flex-wrap: wrap; }
	.mh-kw-tr1 .mh-kw-search { order: 9; flex-basis: 100%; }
	.mh-kw-sort span { display: none; }
	.mh-kw-tr2 { flex-direction: column; align-items: stretch; }
	.mh .mh-kw-st { overflow-x: auto; flex-wrap: nowrap; }
	.mh-kw-fl { justify-content: stretch; }
	.mh-kw-fl select { flex: 1 1 120px; }
	.mh-kw-tagrow [data-tag-manage] span { display: none; }
}
.mh .mh-kw-tags a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.mh .mh-kw-tags a[aria-current="true"] small { color: rgba(255, 255, 255, .82); }
.mh .mh-kw-st a { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
	.mh .mh-kw-st { max-width: 100%; scrollbar-width: none; }
	.mh .mh-kw-st::-webkit-scrollbar { display: none; }
	.mh-kw-tr1 .mh-seg { flex: 1 1 auto; }
	.mh-kw-sort select { max-width: 132px; }
	.mh .mh-kw-tools { padding: 14px 16px 12px; }
}
.mh .mh-kw-tools { grid-template-columns: minmax(0, 1fr); }
.mh-kw-tr1 > *, .mh-kw-tr2 > * { min-width: 0; }
.mh-kw-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .mh-kw-name { flex-wrap: wrap; } .mh-kw-name .mh-kw-open { white-space: normal; text-align: left; } }
.mh-kw-total { font-size: 13px; color: var(--muted); } .mh-kw-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-bulk b small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.mh-bulk .mh-link { font-size: 13px; white-space: nowrap; margin-right: 6px; }
.mh-bulk-all { font-weight: 600; }
.mh-kw-head .mh-kw-ck { display: flex; align-items: center; }

/* Google 连接检查 */
.mh-gc { margin: 12px 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--fill); }
.mh-gc h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; color: var(--warn, #FF9500); }
.mh-gc.all-ok h3 { color: var(--ok, #34C759); }
.mh-gc-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.mh-gc-steps li { display: flex; gap: 10px; align-items: flex-start; }
.mh-gc-steps li > i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--ok, #34C759); }
.mh-gc-steps li.bad > i { background: var(--bad, #FF3B30); }
.mh-gc-steps b { font-size: 13.5px; }
.mh-gc-steps p { margin: 2px 0 0; font-size: 13px; color: var(--muted); word-break: break-word; }
.mh-gc-steps li.bad p { color: var(--ink); }
.mh-gc-steps .mh-gc-fix { color: var(--ink-2, var(--ink)); background: var(--panel); padding: 8px 10px; border-radius: 9px; margin-top: 6px; }
.mh-gc-steps .mh-btn { margin-top: 6px; }
.mh-gc-sites td small { color: var(--muted); }
.mh-gc .mh-row-btns { margin-top: 12px; }
.mh-pill.warn { background: color-mix(in srgb, var(--warn, #FF9500) 16%, transparent); color: var(--warn, #C77700); }

/* 流量页：实时卡片 */
.mh-live { display: grid; grid-template-columns: minmax(160px, auto) minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 22px; }
.mh-live-l { display: grid; gap: 2px; }
.mh-live-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mh-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.mh-live-dot.on { background: #34C759; box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); animation: mhPulse 1.8s infinite; }
@keyframes mhPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.mh-live-n { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mh-live-l small { color: var(--muted); font-size: 12.5px; }
.mh-live-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.mh-live-bars i { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, #34C759 75%, transparent); }
.mh-live-bars i:last-child { background: #34C759; }
.mh-live-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.mh-live-r h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mh-live-r ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mh-live-r li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mh-live-r li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-live-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mh-live-tags span { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--fill); color: var(--ink-2, var(--ink)); }
.mh-tr-cmp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 4px 2px 10px; }
.mh-tr-cmp > span:first-child { font-size: 15px; font-weight: 650; }
.mh-tr-cmp .mh-muted { font-size: 12.5px; }
.mh-kpis.mh-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mh-kpis-6 .mh-kpi-v { font-size: 26px; }
.mh-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.mh-grid3 > .mh-panel { margin: 0; min-width: 0; }
.mh-donut { display: flex; align-items: center; gap: 18px; }
.mh-donut svg { flex: none; width: 116px; height: 116px; }
.mh-donut .t1 { font-size: 18px; font-weight: 700; fill: var(--ink); }
.mh-donut .t2 { font-size: 10.5px; fill: var(--muted); }
.mh-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 0; }
.mh-donut li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; }
.mh-donut li i { width: 10px; height: 10px; border-radius: 3px; }
.mh-donut li b { font-variant-numeric: tabular-nums; }
.mh-donut li small { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.mh-tr-pages .mh-cell-path a { display: grid; gap: 1px; min-width: 0; }
.mh-tr-pages .mh-cell-path b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-tr-pages .mh-cell-path small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-chart .ln.dash { stroke-dasharray: 5 5; stroke-width: 1.8; opacity: .85; }
.mh-chart .end { fill: var(--c); stroke: var(--panel); stroke-width: 2; }
@media (max-width: 1280px) { .mh-kpis.mh-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .mh-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mh-live { grid-template-columns: auto minmax(0, 1fr); } .mh-live-r { grid-column: 1 / -1; } }
@media (max-width: 760px) { .mh-grid3, .mh-live { grid-template-columns: minmax(0, 1fr); } .mh-kpis.mh-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mh-live-n { font-size: 34px; } }
/* 检查连接：原地刷新 */
.mh-gc { transition: opacity .2s; }
.mh-gc.is-busy { opacity: .55; pointer-events: none; }
.mh-gc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mh-gc-top h3 { margin: 0; }
.mh-gc-more { margin: 0 0 12px; }
.mh-gc-more > summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.mh-gc-more > summary::-webkit-details-marker { display: none; }
.mh-gc-more > summary::before { content: "›"; display: inline-block; transition: transform .15s; font-size: 15px; }
.mh-gc-more[open] > summary::before { transform: rotate(90deg); }
.mh-gc-more[open] > summary { margin-bottom: 10px; }
.mh-gc-wait { min-height: 0; }
.mh-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: mhSpin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
.mh-gguide, .mh-gkey { margin: 12px 0; }
.mh-gguide > summary, .mh-gkey > summary { display: inline-flex; align-items: center; gap: 6px; }
