/* 筋膜枪振幅与推力选择器 · 独立主题（石墨 + 琥珀） */
:root {
  --mg-ink: #44403c;
  --mg-ink2: #292524;
  --mg-a: #f59e0b;
  --mg-a2: #d97706;
  --mg-a-soft: #fff7e8;
  --mg-bg: #f3f2ef;
  --mg-card: #ffffff;
  --mg-card2: #fbfaf8;
  --mg-txt: #26221f;
  --mg-txt2: #5d5751;
  --mg-txt3: #8b847c;
  --mg-line: #e2ddd6;
  --mg-line2: #f0ece6;
  --mg-ok: #15803d;
  --mg-warn: #b45309;
  --mg-bad: #b91c1c;
  --mg-shadow: 0 1px 2px rgba(68, 64, 60, .06), 0 12px 30px -18px rgba(68, 64, 60, .35);
  --mg-r: 15px;
  --mg-r2: 10px;
}

[data-theme='dark'] .mg {
  --mg-ink: #e7e5e4;
  --mg-ink2: #f5f5f4;
  --mg-a: #fbbf24;
  --mg-a2: #f59e0b;
  --mg-a-soft: #3a2c0f;
  --mg-bg: #131211;
  --mg-card: #1e1c19;
  --mg-card2: #191715;
  --mg-txt: #f2efec;
  --mg-txt2: #c2bcb5;
  --mg-txt3: #938c84;
  --mg-line: #37332e;
  --mg-line2: #2a2723;
  --mg-ok: #4ade80;
  --mg-warn: #fbbf24;
  --mg-bad: #f87171;
  --mg-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -18px rgba(0, 0, 0, .7);
}

.mg { background: var(--mg-bg); color: var(--mg-txt); padding: 26px 0 46px; }
.mg-inner { width: min(1140px, calc(100% - 44px)); max-width: none; margin: 0 auto; }

/* ================= Hero ================= */
.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px;
  align-items: center;
  padding: 34px 34px 30px;
  border-radius: 22px;
  color: #f8f6f2;
  background:
    radial-gradient(760px 280px at 86% 14%, rgba(245, 158, 11, .28), transparent 68%),
    radial-gradient(420px 260px at 10% 100%, rgba(245, 158, 11, .10), transparent 70%),
    linear-gradient(135deg, #4b4540 0%, #37322e 55%, #26221f 100%);
  border: 1px solid #57504a;
  box-shadow: 0 18px 46px -26px rgba(38, 34, 31, .9);
}
.mg-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  color: #fcd34d;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .38);
  padding: 5px 11px; border-radius: 999px;
}
.mg-hero h1 { margin: 16px 0 0; font-size: clamp(27px, 3.5vw, 41px); line-height: 1.2; letter-spacing: -.8px; font-weight: 800; color: #fdfcfb; }
.mg-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 6px; color: #fbbf24;
  background: linear-gradient(180deg, transparent 64%, rgba(245, 158, 11, .32) 64%);
  padding: 0 3px;
}
.mg-sub { margin: 14px 0 0; font-size: 14.5px; line-height: 1.85; color: #d6d0c9; max-width: 66ch; }
.mg-sub b { color: #fef3c7; font-weight: 700; }
.mg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mg-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #e0dbd4;
}
.mg-tag i { color: #fbbf24; font-style: normal; font-weight: 800; }

/* 纯 CSS 筋膜枪插画 + 震荡波纹 */
.mg-hero-art { position: relative; height: 240px; }
.mg-gun { position: absolute; left: 50%; top: 62px; transform: translateX(-46%); width: 190px; height: 96px; }
.mg-gun-head {
  position: absolute; left: -14px; top: 8px; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fde68a, #f59e0b 58%, #b45309);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 8px 18px -8px rgba(0, 0, 0, .7);
  z-index: 3;
}
.mg-gun-head::after { content: ''; position: absolute; left: 16px; top: -16px; width: 22px; height: 20px; border-radius: 6px; background: #78716c; }
.mg-gun-body {
  position: absolute; left: 30px; top: 0; width: 150px; height: 58px; border-radius: 30px 18px 18px 30px;
  background: linear-gradient(180deg, #57534e 0%, #44403c 46%, #2c2825 100%);
  border: 1px solid #6b6560;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 14px 26px -16px rgba(0, 0, 0, .85);
  z-index: 2;
}
.mg-gun-body s { position: absolute; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; opacity: .85; }
.mg-gun-body::before { content: ''; position: absolute; left: -16px; top: 16px; width: 26px; height: 22px; border-radius: 7px; background: linear-gradient(180deg, #78716c, #57534e); border: 1px solid #6b6560; }
.mg-gun-body .p1 { left: 48px; }
.mg-gun-body .p2 { left: 64px; opacity: .5; }
.mg-gun-body .p3 { left: 80px; opacity: .28; }
.mg-gun-grip {
  position: absolute; left: 82px; top: 48px; width: 42px; height: 76px; border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, #44403c, #292524);
  border: 1px solid #615b55;
  transform: rotate(9deg);
  z-index: 1;
}
.mg-gun-grip::after { content: ''; position: absolute; left: 8px; bottom: 6px; right: 8px; height: 8px; border-radius: 4px; background: rgba(245, 158, 11, .35); }
.mg-gun-trigger {
  position: absolute; left: 118px; top: 38px; width: 16px; height: 9px; border-radius: 4px;
  background: #f59e0b; opacity: .8; z-index: 3;
}
.mg-wave {
  position: absolute; left: calc(50% - 96px); top: 88px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, .55);
  transform: translate(-50%, -50%);
  animation: mgWave 2.6s ease-out infinite;
}
.mg-wave.w2 { animation-delay: .7s; }
.mg-wave.w3 { animation-delay: 1.4s; }
@keyframes mgWave {
  0% { width: 18px; height: 18px; opacity: .85; }
  100% { width: 92px; height: 92px; opacity: 0; }
}
.mg-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  background: rgba(30, 27, 24, .82); border: 1px solid rgba(255, 255, 255, .16);
  color: #ded8d1; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8);
}
.mg-chip b { color: #fbbf24; }
.mg-chip.c1 { left: 0; top: 22px; animation: mgFloat 4.4s ease-in-out infinite; }
.mg-chip.c2 { right: 0; top: 172px; animation: mgFloat 4.4s ease-in-out .8s infinite; }
@keyframes mgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ================= 免责条 ================= */
.mg-disclaimer {
  margin: 16px 0 0; padding: 10px 14px;
  font-size: 12.5px; line-height: 1.75; color: var(--mg-txt2);
  background: var(--mg-a-soft);
  border: 1px solid color-mix(in srgb, var(--mg-a) 30%, transparent);
  border-left: 3px solid var(--mg-a);
  border-radius: 0 10px 10px 0;
}
.mg-disclaimer b { color: var(--mg-warn); margin-right: 8px; }

/* ================= 输入卡片（全宽堆叠） ================= */
.mg-card {
  margin-top: 16px;
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-r);
  box-shadow: var(--mg-shadow);
  padding: 20px 24px 22px;
}
.mg-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mg-card-h h2 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.mg-no {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: var(--mg-ink); padding: 3px 7px; border-radius: 5px;
}
[data-theme='dark'] .mg .mg-no { color: #1c1917; background: var(--mg-a); }
.mg-card-h small { font-size: 12px; color: var(--mg-txt3); }

.mg-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.mg-part {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid var(--mg-line); border-radius: 11px; padding: 10px 12px;
  background: var(--mg-card2); transition: border-color .18s, background .18s;
}
.mg-part input { appearance: none; width: 16px; height: 16px; flex: none; border: 1.5px solid var(--mg-line); border-radius: 4px; position: relative; cursor: pointer; }
.mg-part input:checked { background: var(--mg-ink); border-color: var(--mg-ink); }
.mg-part input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; font-weight: 800; }
[data-theme='dark'] .mg .mg-part input:checked { background: var(--mg-a); border-color: var(--mg-a); }
[data-theme='dark'] .mg .mg-part input:checked::after { color: #1c1917; }
.mg-part:has(input:checked) { border-color: var(--mg-ink); background: var(--mg-a-soft); }
.mg-part span { display: block; min-width: 0; }
.mg-part b { display: block; font-size: 13px; font-weight: 700; color: var(--mg-txt); }
.mg-part small { display: block; font-size: 10.5px; color: var(--mg-txt3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mg-field { margin-bottom: 0; min-width: 0; }
.mg-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mg-label label { font-size: 13.5px; font-weight: 600; color: var(--mg-txt); }
.mg-label label b { color: var(--mg-bad); }
.mg-hint { font-size: 11.5px; color: var(--mg-txt3); text-align: right; }

.mg-range-row { display: grid; grid-template-columns: 1fr 118px; gap: 14px; align-items: center; }
.mg-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--mg-line); outline: none; }
.mg-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mg-a); border: 3px solid var(--mg-card); box-shadow: 0 0 0 1px var(--mg-a); cursor: pointer;
}
.mg-range-row input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--mg-a); cursor: pointer; }

.mg-numbox { display: flex; align-items: center; border: 1px solid var(--mg-line); border-radius: var(--mg-r2); background: var(--mg-card2); overflow: hidden; }
.mg-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--mg-txt); font-size: 15px; font-weight: 700; padding: 9px 10px; outline: none; }
.mg-numbox span { padding: 0 10px; font-size: 12px; color: var(--mg-txt3); background: var(--mg-line2); align-self: stretch; display: flex; align-items: center; }

.mg-control { border: 1px solid var(--mg-line); border-radius: var(--mg-r2); background: var(--mg-card2); }
.mg-control select {
  width: 100%; border: 0; background: transparent; color: var(--mg-txt);
  font-size: 13.5px; padding: 10px 34px 10px 11px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mg-txt3) 50%), linear-gradient(135deg, var(--mg-txt3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.mg-seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--mg-line2); padding: 4px; border-radius: var(--mg-r2); }
.mg-segbtn {
  flex: 1 1 auto; min-width: 92px; border: 0; background: transparent; color: var(--mg-txt2);
  font-size: 12.5px; font-weight: 600; padding: 9px 10px; border-radius: 7px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.mg-segbtn.on { background: var(--mg-card); color: var(--mg-a2); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
[data-theme='dark'] .mg .mg-segbtn.on { color: var(--mg-a); }
.mg-segbtn:hover { color: var(--mg-a2); }

.mg-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--mg-line); }
.mg-presets-label { font-size: 12px; color: var(--mg-txt3); }
.mg-preset {
  border: 1px solid var(--mg-line); background: var(--mg-card2); color: var(--mg-txt2);
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.mg-preset:hover { border-color: var(--mg-a); color: var(--mg-a2); background: var(--mg-a-soft); }

.mg-err { display: none; margin-top: 7px; font-size: 12px; color: var(--mg-bad); }
.mg-err.on { display: block; }
.mg-field.bad .mg-numbox, .mg-field.bad .mg-control { border-color: var(--mg-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-bad) 14%, transparent); }
.mg-parts.bad, .mg-row .mg-field.bad .mg-seg { border-color: var(--mg-bad); }

.mg-tip { margin: 12px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--mg-txt3); background: var(--mg-line2); border-left: 3px solid var(--mg-a); padding: 9px 12px; border-radius: 0 8px 8px 0; }
.mg-tip code { font-size: 11.5px; background: var(--mg-card); padding: 1px 5px; border-radius: 4px; color: var(--mg-a2); }

.mg-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.mg-actions.tight { margin-top: 12px; }
.mg-btn {
  border: 1px solid var(--mg-line); background: var(--mg-card); color: var(--mg-txt);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 9px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.mg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .55); }
.mg-btn.primary { background: var(--mg-ink); border-color: var(--mg-ink); color: #fff; }
[data-theme='dark'] .mg .mg-btn.primary { background: var(--mg-a); border-color: var(--mg-a); color: #1c1917; }
.mg-btn.ghost { background: transparent; color: var(--mg-txt2); }
.mg-msg { margin-top: 11px; font-size: 12.5px; color: var(--mg-txt3); }

/* ================= 结果卡 ================= */
.mg-result {
  margin-top: 16px; overflow: hidden;
  background: var(--mg-card); border: 1px solid var(--mg-line);
  border-radius: var(--mg-r); box-shadow: var(--mg-shadow);
}
.mg-result-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--mg-ink), #57534e);
  color: #fff;
}
[data-theme='dark'] .mg .mg-result-h { background: linear-gradient(90deg, #2a2724, #1c1a18); }
.mg-result-kicker { font-size: 10px; letter-spacing: 2px; color: #fbbf24; font-weight: 700; }
.mg-result-h h2 { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: #fdfcfb; }
.mg-badge { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #f5f2ee; white-space: nowrap; }
.mg-badge.ok { background: rgba(34, 197, 94, .22); color: #bbf7d0; }
.mg-badge.warn { background: rgba(245, 158, 11, .24); color: #fde68a; }

.mg-verdict-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; border-bottom: 1px solid var(--mg-line2); }
.mg-verdict { padding: 26px 24px; text-align: center; border-right: 1px solid var(--mg-line2); background: linear-gradient(180deg, var(--mg-a-soft), transparent 82%); }
.mg-verdict-label { display: block; font-size: 12px; letter-spacing: 1px; color: var(--mg-txt3); }
.mg-verdict-num { display: inline-block; font-size: 60px; line-height: 1.02; font-weight: 800; color: var(--mg-a2); letter-spacing: -2.5px; margin-top: 4px; }
[data-theme='dark'] .mg .mg-verdict-num { color: var(--mg-a); }
.mg-verdict-unit { font-size: 14px; color: var(--mg-txt2); margin-left: 4px; }
.mg-verdict-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--mg-txt2); }

.mg-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-kpi { padding: 18px 22px; border-left: 1px solid var(--mg-line2); border-bottom: 1px solid var(--mg-line2); }
.mg-kpi:nth-child(odd) { border-left: 0; }
.mg-kpi:nth-child(n + 3) { border-bottom: 0; }
.mg-kpi span { display: block; font-size: 11.5px; color: var(--mg-txt3); }
.mg-kpi b { display: inline-block; font-size: 24px; font-weight: 800; color: var(--mg-txt); margin-top: 3px; letter-spacing: -.6px; }
.mg-kpi small { font-size: 11px; color: var(--mg-txt3); margin-left: 4px; }

.mg-amp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 24px 6px; }
.mg-amp {
  border: 1.5px solid var(--mg-line); border-radius: 12px; padding: 14px 14px 12px;
  background: var(--mg-card2); position: relative; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mg-amp.rec { border-color: var(--mg-a2); background: var(--mg-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-a) 20%, transparent); transform: translateY(-2px); }
.mg-amp-tag { position: absolute; right: 10px; top: -10px; font-size: 10px; font-weight: 800; color: #fff; background: var(--mg-a2); padding: 3px 8px; border-radius: 999px; }
.mg-amp h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--mg-txt); letter-spacing: -.6px; }
.mg-amp h3 span { font-size: 11.5px; font-weight: 500; color: var(--mg-txt3); margin-left: 5px; }
.mg-amp > p { margin: 4px 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--mg-txt3); min-height: 36px; }
.mg-amp-bar { height: 6px; border-radius: 999px; background: var(--mg-line2); overflow: hidden; }
.mg-amp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d6d3d1, var(--mg-a)); }
.mg-amp dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; font-size: 12px; }
.mg-amp dt { color: var(--mg-txt3); }
.mg-amp dd { margin: 0; text-align: right; font-weight: 600; color: var(--mg-txt); }

.mg-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; padding: 18px 24px; border-top: 1px dashed var(--mg-line); margin-top: 12px; }
.mg-axis-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mg-txt3); margin-bottom: 10px; }
.mg-axis-h b { font-size: 15px; color: var(--mg-txt); }
.mg-axis-track { position: relative; height: 12px; border-radius: 999px; background: var(--mg-line2); }
.mg-axis-track.noise { background: linear-gradient(90deg, #ecfdf5, #f7fee7 40%, #fef3c7 72%, #fee2e2); }
[data-theme='dark'] .mg .mg-axis-track.noise { background: linear-gradient(90deg, #17251c, #23291a 40%, #302612 72%, #331a1a); }
.mg-axis-fill { height: 100%; border-radius: 999px; width: 0; transition: width .45s ease; background: linear-gradient(90deg, var(--mg-a), var(--mg-a2)); }
.mg-axis-track.noise .mg-axis-fill { background: linear-gradient(90deg, #34d399, #fbbf24 70%, #f59e0b); }
.mg-axis-mark { position: absolute; top: -6px; width: 2px; height: 24px; background: var(--mg-txt); left: 0; transition: left .45s ease; }
.mg-axis-mark i { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--mg-txt2); white-space: nowrap; }
.mg-axis-scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10.5px; color: var(--mg-txt3); }

.mg-advice { padding: 18px 24px 8px; }
.mg-advice h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.mg-advice-lead { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--mg-line2); font-size: 13px; line-height: 1.8; color: var(--mg-txt); border-left: 3px solid var(--mg-a); }
.mg-advice ul { margin: 0; padding-left: 18px; }
.mg-advice li { font-size: 12.5px; line-height: 1.85; color: var(--mg-txt2); margin-bottom: 4px; }
.mg-risk { margin: 4px 24px 20px; padding: 10px 13px; border-radius: 10px; background: color-mix(in srgb, var(--mg-warn) 11%, transparent); border: 1px solid color-mix(in srgb, var(--mg-warn) 34%, transparent); font-size: 12.5px; line-height: 1.75; color: var(--mg-txt2); }
.mg-risk strong { color: var(--mg-warn); margin-right: 8px; }

/* ================= 三档机型 ================= */
.mg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mg-plan {
  border: 1.5px solid var(--mg-line); border-radius: 13px; background: var(--mg-card2);
  padding: 18px 16px 14px; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mg-plan.rec { border-color: var(--mg-a2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-a) 18%, transparent); background: var(--mg-card); }
.mg-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--mg-a2); padding: 3px 9px; border-radius: 999px; }
.mg-plan h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.5px; color: var(--mg-txt); }
.mg-plan h3 span { font-size: 11.5px; color: var(--mg-txt3); font-weight: 500; margin-left: 5px; }
.mg-plan > p.mg-plan-people { margin: 3px 0 12px; font-size: 12px; color: var(--mg-txt3); }
.mg-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; }
.mg-plan dt { color: var(--mg-txt3); }
.mg-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--mg-txt); }
.mg-plan-notes { margin-top: 10px; font-size: 11.5px; line-height: 1.75; color: var(--mg-txt3); }
.mg-plan-notes b { color: var(--mg-ok); font-weight: 600; }
.mg-plan-notes em { font-style: normal; color: var(--mg-warn); }
.mg-plan-pick { margin-top: 12px; width: 100%; border: 0; border-radius: 8px; padding: 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--mg-line2); color: var(--mg-txt2); transition: background .18s, color .18s; }
.mg-plan.rec .mg-plan-pick { background: var(--mg-a2); color: #fff; }
[data-theme='dark'] .mg .mg-plan.rec .mg-plan-pick { background: var(--mg-a); color: #1c1917; }

/* ================= 表格 / 步骤 / 历史 ================= */
.mg-table-wrap { overflow-x: auto; border: 1px solid var(--mg-line); border-radius: 11px; }
.mg-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.mg-table th, .mg-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--mg-line2); }
.mg-table th { background: var(--mg-line2); font-size: 12px; font-weight: 700; color: var(--mg-txt2); }
.mg-table td:nth-child(2) b { color: var(--mg-a2); }
[data-theme='dark'] .mg .mg-table td:nth-child(2) b { color: var(--mg-a); }
.mg-table td:last-child { color: var(--mg-txt3); font-size: 12px; }
.mg-table tr:last-child td { border-bottom: 0; }

.mg-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mg-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--mg-txt2); }
.mg-steps li b { color: #fff; background: var(--mg-ink); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
[data-theme='dark'] .mg .mg-steps li b { background: var(--mg-a); color: #1c1917; }
.mg-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--mg-a2); margin-top: 3px; }
[data-theme='dark'] .mg .mg-steps li em { color: var(--mg-a); }

.mg-textarea { width: 100%; min-height: 118px; resize: vertical; border: 1px solid var(--mg-line); border-radius: 11px; background: var(--mg-card2); color: var(--mg-txt); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; padding: 12px; }

.mg-history { display: flex; flex-direction: column; gap: 8px; }
.mg-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--mg-line); border-radius: 9px; padding: 10px 12px; background: var(--mg-card2); font-size: 12.5px; color: var(--mg-txt2); }
.mg-hist-item button { border: 0; background: var(--mg-a-soft); color: var(--mg-a2); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 7px; cursor: pointer; flex: none; }
[data-theme='dark'] .mg .mg-hist-item button { color: var(--mg-a); }
.mg-empty { font-size: 12.5px; color: var(--mg-txt3); margin: 0; }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .mg-hero { grid-template-columns: 1fr; }
  .mg-hero-art { display: none; }
  .mg-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-verdict-row { grid-template-columns: 1fr; }
  .mg-verdict { border-right: 0; border-bottom: 1px solid var(--mg-line2); }
  .mg-amp-cards { grid-template-columns: 1fr; }
  .mg-plans { grid-template-columns: 1fr; }
  .mg-axes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mg-inner { width: calc(100% - 28px); }
  .mg-hero { padding: 24px 18px 22px; border-radius: 16px; }
  .mg-card { padding: 16px 16px 18px; }
  .mg-row, .mg-grid2 { grid-template-columns: 1fr; }
  .mg-range-row { grid-template-columns: 1fr; }
  .mg-kpis { grid-template-columns: 1fr 1fr; }
  .mg-kpi { padding: 14px 16px; }
  .mg-verdict-num { font-size: 48px; }
  .mg-actions .mg-btn { flex: 1 1 44%; }
  .mg-card-h small { display: none; }
}

/* ================= 打印 ================= */
@media print {
  .mg-actions, .mg-textarea, .mg-history, .mg-presets, .tsk-crumb-bar { display: none !important; }
  .mg { padding: 0; background: #fff; }
  .mg-hero { background: #fff; color: #222; border-color: #ddd; box-shadow: none; }
  .mg-hero h1, .mg-hero h1 em { color: #222; background: none; }
  .mg-sub, .mg-tag { color: #555; }
  .mg-result, .mg-card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}
@media print {
  .mg-result-h { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 全局对齐：面包屑 / 内容 / 底部区块统一 ---------- */
.tsk-crumb-bar-in {
  width: min(1140px, calc(100% - 44px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 11px 0 !important;
}
.tsk-crumb { font-size: 13px; }
@media (max-width: 700px) {
  .tsk-crumb-bar-in { width: calc(100% - 28px) !important; padding: 9px 0 !important; }
}
