/* 跑步机马达与跑带尺寸计算器 · 独立主题（深橙） */
:root {
  --tm-a: #ea580c;
  --tm-a2: #fdba74;
  --tm-a-soft: #ffedd5;
  --tm-bg: #fff9f4;
  --tm-card: #ffffff;
  --tm-card2: #fffaf5;
  --tm-txt: #29180e;
  --tm-txt2: #6c4f3b;
  --tm-txt3: #9d8371;
  --tm-line: #f1ddc9;
  --tm-line2: #fcefe2;
  --tm-ok: #15803d;
  --tm-warn: #b45309;
  --tm-bad: #b91c1c;
  --tm-shadow: 0 1px 2px rgba(160, 70, 10, .05), 0 12px 30px -16px rgba(160, 70, 10, .28);
  --tm-r: 16px;
  --tm-r2: 11px;
}

[data-theme='dark'] .tm {
  --tm-a: #fdba74;
  --tm-a2: #fed7aa;
  --tm-a-soft: #3b2412;
  --tm-bg: #17110b;
  --tm-card: #231913;
  --tm-card2: #1c140f;
  --tm-txt: #f8ece0;
  --tm-txt2: #d1b39b;
  --tm-txt3: #9f8371;
  --tm-line: #3d2b1e;
  --tm-line2: #2c1e15;
  --tm-ok: #4ade80;
  --tm-warn: #fbbf24;
  --tm-bad: #f87171;
  --tm-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -16px rgba(0, 0, 0, .65);
}

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

/* ---------- Hero ---------- */
.tm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 26px;
  align-items: center;
  padding: 30px 30px 26px;
  border-radius: 22px;
  background:
    radial-gradient(820px 300px at 88% 6%, rgba(253, 186, 116, .22), transparent 66%),
    linear-gradient(135deg, var(--tm-card) 0%, var(--tm-card2) 100%);
  border: 1px solid var(--tm-line);
  box-shadow: var(--tm-shadow);
}
.tm-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--tm-a); background: var(--tm-a-soft);
  border: 1px solid color-mix(in srgb, var(--tm-a) 24%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.tm-hero h1 {
  margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2;
  letter-spacing: -.6px; font-weight: 800;
}
.tm-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 4px; color: var(--tm-a);
  background: linear-gradient(180deg, transparent 62%, rgba(253, 186, 116, .32) 62%);
  padding: 0 2px;
}
.tm-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--tm-txt2); max-width: 66ch; }
.tm-sub b { color: var(--tm-txt); font-weight: 700; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tm-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--tm-card2); border: 1px solid var(--tm-line); color: var(--tm-txt2);
}
.tm-tag i { color: var(--tm-a); font-style: normal; font-weight: 800; }

/* 纯 CSS 跑步机插画 */
.tm-hero-art { position: relative; height: 250px; }
.tm-machine { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: 230px; }
.tm-console {
  width: 152px; height: 42px; margin: 0 auto; border-radius: 12px;
  background: linear-gradient(180deg, #fff7ed, #fdba74);
  border: 2px solid #c2410c;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: inset 0 -6px 10px -8px rgba(120, 40, 10, .5);
}
.tm-console span { width: 18px; height: 18px; border-radius: 4px; background: rgba(194, 65, 12, .25); border: 1px solid rgba(194, 65, 12, .45); }
.tm-console span:first-child { background: rgba(234, 88, 12, .75); }
.tm-post { width: 7px; height: 56px; background: #c2410c; opacity: .75; }
.tm-post.p1 { position: absolute; left: 60px; top: 40px; transform: rotate(-8deg); }
.tm-post.p2 { position: absolute; right: 60px; top: 40px; transform: rotate(8deg); }
.tm-deck {
  position: relative; width: 226px; height: 74px; margin-top: 22px;
  border-radius: 16px 16px 22px 22px;
  background: linear-gradient(180deg, #7c2d12, #431407);
  box-shadow: inset 0 6px 10px -8px rgba(255, 255, 255, .25);
}
.tm-belt {
  position: absolute; left: 10px; right: 10px; top: 20px; height: 40px;
  border-radius: 7px; background: #1f120b; overflow: hidden;
  display: flex; gap: 0;
}
.tm-belt s {
  display: block; flex: 1; height: 100%;
  background: repeating-linear-gradient(90deg, rgba(253, 186, 116, .28) 0 4px, transparent 4px 13px);
  animation: tmBelt .5s linear infinite;
}
@keyframes tmBelt { from { background-position-x: 0; } to { background-position-x: 13px; } }
.tm-roller {
  position: absolute; top: 14px; width: 14px; height: 52px; border-radius: 7px;
  background: radial-gradient(circle at 50% 30%, #fdba74, #9a3412);
}
.tm-roller.r1 { left: 2px; animation: tmRoll 1.2s linear infinite; }
.tm-roller.r2 { right: 2px; animation: tmRoll 1.2s linear infinite reverse; }
@keyframes tmRoll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.tm-speedline {
  position: absolute; right: -46px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--tm-a2), transparent);
  animation: tmSpeed 1.8s ease-in-out infinite;
}
.tm-speedline.l1 { top: 26px; width: 42px; animation-delay: .1s; }
.tm-speedline.l2 { top: 44px; width: 56px; animation-delay: .5s; }
.tm-speedline.l3 { top: 62px; width: 38px; animation-delay: .9s; }
@keyframes tmSpeed { 0% { transform: translateX(-8px); opacity: .2; } 50% { opacity: .9; } 100% { transform: translateX(8px); opacity: .15; } }
.tm-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  background: var(--tm-card); border: 1px solid var(--tm-line);
  color: var(--tm-txt2); box-shadow: var(--tm-shadow); white-space: nowrap;
}
.tm-chip b { color: var(--tm-a); }
.tm-chip.c1 { left: 0; top: 100px; animation: tmFloat 4.2s ease-in-out infinite; }
.tm-chip.c2 { right: 0; top: 176px; animation: tmFloat 4.2s ease-in-out .7s infinite; }
@keyframes tmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 纵向仪表盘流 ---------- */
.tm-flow { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

.tm-card { background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-r); box-shadow: var(--tm-shadow); padding: 22px 24px 24px; }
.tm-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tm-card-h h2 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.tm-no { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--tm-a); padding: 3px 7px; border-radius: 6px; }
[data-theme='dark'] .tm .tm-no { color: #1a0f08; }
.tm-card-h small { font-size: 12px; color: var(--tm-txt3); }

.tm-field { margin-bottom: 15px; min-width: 0; }
.tm-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tm-label label { font-size: 13.5px; font-weight: 600; color: var(--tm-txt); }
.tm-label label b { color: var(--tm-bad); }
.tm-hint { font-size: 11.5px; color: var(--tm-txt3); }

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

.tm-numbox { display: flex; align-items: center; border: 1px solid var(--tm-line); border-radius: var(--tm-r2); background: var(--tm-card2); overflow: hidden; }
.tm-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tm-txt); font-size: 15px; font-weight: 700; padding: 9px 10px; outline: none; }
.tm-numbox span { padding: 0 10px; font-size: 11.5px; color: var(--tm-txt3); background: var(--tm-line2); align-self: stretch; display: flex; align-items: center; }
.tm-numbox.wide { width: 100%; }
.tm-err { display: none; margin-top: 6px; font-size: 12px; color: var(--tm-bad); }
.tm-err.on { display: block; }
.tm-field.bad .tm-numbox { border-color: var(--tm-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-bad) 14%, transparent); }

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

.tm-seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--tm-line2); padding: 4px; border-radius: var(--tm-r2); }
.tm-segbtn { flex: 1 1 auto; min-width: 100px; border: 0; background: transparent; color: var(--tm-txt2); font-size: 12.5px; font-weight: 600; padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .18s, color .18s; }
.tm-segbtn.on { background: var(--tm-card); color: var(--tm-a); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tm-segbtn:hover { color: var(--tm-a); }

.tm-unit-row { display: flex; gap: 4px; margin-top: 8px; }
.tm-unitbtn { border: 1px solid var(--tm-line); background: var(--tm-card2); color: var(--tm-txt3); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.tm-unitbtn.on { border-color: var(--tm-a); background: var(--tm-a-soft); color: var(--tm-a); }

.tm-switch-row { display: flex; align-items: center; gap: 9px; height: 40px; }
.tm-switch { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--tm-line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.tm-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.tm-switch:checked { background: var(--tm-a); }
.tm-switch:checked::after { transform: translateX(18px); }
.tm-switch-txt { font-size: 12.5px; color: var(--tm-txt2); }

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

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

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

/* ---------- 结果仪表盘 ---------- */
.tm-result { background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-r); box-shadow: var(--tm-shadow); overflow: hidden; }
.tm-result-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--tm-line2); }
.tm-result-h h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.tm-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tm-line2); color: var(--tm-txt3); }
.tm-badge.ok { background: color-mix(in srgb, var(--tm-ok) 16%, transparent); color: var(--tm-ok); }
.tm-badge.warn { background: color-mix(in srgb, var(--tm-warn) 18%, transparent); color: var(--tm-warn); }

.tm-result-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.tm-chp-block { padding: 20px 22px 18px; background: linear-gradient(180deg, var(--tm-a-soft), transparent); border-right: 1px solid var(--tm-line2); }
.tm-chp-label { display: block; font-size: 12px; color: var(--tm-txt3); }
.tm-chp-num { display: inline-block; font-size: 52px; line-height: 1.05; font-weight: 800; color: var(--tm-a); letter-spacing: -2px; margin-top: 2px; }
.tm-chp-unit { font-size: 13px; color: var(--tm-txt2); }
.tm-chp-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--tm-txt2); }
.tm-chp-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
.tm-chp-step { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--tm-txt3); background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: 7px; padding: 6px 2px; transition: background .2s, color .2s, border-color .2s; }
.tm-chp-step.on { background: var(--tm-a); border-color: var(--tm-a); color: #fff; }
[data-theme='dark'] .tm .tm-chp-step.on { color: #1a0f08; }
.tm-chp-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--tm-txt3); }

.tm-belt-block { padding: 20px 22px 18px; }
.tm-belt-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--tm-txt2); }
.tm-belt-head b { font-size: 18px; color: var(--tm-a); letter-spacing: -.4px; }
.tm-belt-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tm-belt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--tm-line); border-radius: 9px; background: var(--tm-card2); padding: 9px 12px; font-size: 12.5px; font-weight: 700; color: var(--tm-txt); transition: border-color .2s, background .2s; }
.tm-belt-row em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--tm-txt3); }
.tm-belt-row.on { border-color: var(--tm-a); background: var(--tm-a-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tm-a) 14%, transparent); }
.tm-belt-row.rec { border-color: var(--tm-ok); }
.tm-belt-row.on.rec { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tm-a) 16%, transparent); }
.tm-belt-foot { margin-top: 9px; font-size: 11px; color: var(--tm-txt3); }

.tm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--tm-line2); border-top: 1px solid var(--tm-line2); }
.tm-kpi { background: var(--tm-card); padding: 13px 18px; }
.tm-kpi span { display: block; font-size: 11.5px; color: var(--tm-txt3); }
.tm-kpi b { display: inline-block; font-size: 19px; font-weight: 800; color: var(--tm-txt); margin-top: 2px; letter-spacing: -.4px; }
.tm-kpi small { font-size: 11px; color: var(--tm-txt3); margin-left: 3px; }

.tm-advice { padding: 16px 22px 18px; }
.tm-advice h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--tm-txt); }
.tm-advice ul { margin: 0; padding-left: 18px; }
.tm-advice li { font-size: 12.8px; line-height: 1.85; color: var(--tm-txt2); margin-bottom: 4px; }
.tm-risk { margin: 0 18px 18px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--tm-warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tm-warn) 35%, transparent); font-size: 12.5px; line-height: 1.7; color: var(--tm-txt2); }
.tm-risk strong { color: var(--tm-warn); margin-right: 6px; }

/* ---------- 四强度矩阵 ---------- */
.tm-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tm-mcol { border: 1px solid var(--tm-line); border-radius: 13px; background: var(--tm-card2); overflow: hidden; }
.tm-mcol.on { border-color: var(--tm-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-a) 14%, transparent); }
.tm-mcol-top { padding: 12px 14px 10px; color: #fff; }
.tm-mcol-top.walk { background: linear-gradient(135deg, #fb923c, #ea580c); }
.tm-mcol-top.jog { background: linear-gradient(135deg, #f97316, #c2410c); }
.tm-mcol-top.run { background: linear-gradient(135deg, #ea580c, #9a3412); }
.tm-mcol-top.sprint { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.tm-mcol-top h3 { margin: 0; font-size: 15px; font-weight: 800; }
.tm-mcol-top small { font-size: 11.5px; opacity: .9; }
.tm-mcol-body { padding: 12px 14px 14px; }
.tm-mcol-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--tm-txt3); padding: 5px 0; border-bottom: 1px dashed var(--tm-line); }
.tm-mcol-row b { font-size: 13px; color: var(--tm-txt); }
.tm-mcol-row:last-of-type { border-bottom: 0; }
.tm-mcol-who { margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: var(--tm-txt2); }
.tm-mcol-tag { display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 700; color: var(--tm-a); background: var(--tm-a-soft); padding: 3px 8px; border-radius: 999px; }

/* ---------- 三档机型 ---------- */
.tm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tm-plan { border: 1.5px solid var(--tm-line); border-radius: 14px; background: var(--tm-card2); padding: 18px 16px 14px; position: relative; }
.tm-plan.rec { border-color: var(--tm-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-a) 15%, transparent); background: var(--tm-card); }
.tm-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--tm-a); padding: 3px 9px; border-radius: 999px; }
[data-theme='dark'] .tm .tm-plan-tag { color: #1a0f08; }
.tm-plan h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--tm-txt); letter-spacing: -.4px; }
.tm-plan h3 span { display: block; font-size: 12px; color: var(--tm-txt3); font-weight: 500; margin-top: 3px; }
.tm-plan p { margin: 6px 0 11px; font-size: 12px; color: var(--tm-txt3); }
.tm-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; }
.tm-plan dt { color: var(--tm-txt3); }
.tm-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--tm-txt); }
.tm-plan-good { margin-top: 10px; font-size: 12px; line-height: 1.75; color: var(--tm-txt3); }
.tm-plan-good span { display: block; }
.tm-plan-pick { margin-top: 12px; width: 100%; border: 0; border-radius: 9px; padding: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--tm-line2); color: var(--tm-txt2); }
.tm-plan.rec .tm-plan-pick { background: var(--tm-a); color: #fff; }
[data-theme='dark'] .tm .tm-plan.rec .tm-plan-pick { color: #1a0f08; }

/* ---------- 表格 / 步骤 ---------- */
.tm-table-wrap { overflow-x: auto; border: 1px solid var(--tm-line); border-radius: 12px; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 580px; }
.tm-table th, .tm-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--tm-line2); }
.tm-table th { background: var(--tm-line2); font-size: 12px; color: var(--tm-txt2); font-weight: 700; }
.tm-table td:last-child { color: var(--tm-txt3); font-size: 12px; }
.tm-table tr:last-child td { border-bottom: 0; }

.tm-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tm-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--tm-txt2); }
.tm-steps li b { color: var(--tm-txt); }
.tm-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--tm-a); margin-top: 3px; }

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

.tm-history { display: flex; flex-direction: column; gap: 8px; }
.tm-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--tm-line); border-radius: 10px; padding: 10px 12px; background: var(--tm-card2); font-size: 12.5px; }
.tm-hist-item button { border: 0; background: var(--tm-a-soft); color: var(--tm-a); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.tm-empty { font-size: 12.5px; color: var(--tm-txt3); margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tm-hero { grid-template-columns: 1fr; }
  .tm-hero-art { display: none; }
  .tm-result-top { grid-template-columns: 1fr; }
  .tm-chp-block { border-right: 0; border-bottom: 1px solid var(--tm-line2); }
  .tm-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-plans { grid-template-columns: 1fr; }
  .tm-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .tm-inner { width: calc(100% - 28px); }
  .tm-hero { padding: 22px 18px; border-radius: 16px; }
  .tm-card { padding: 16px 16px 18px; }
  .tm-grid2 { grid-template-columns: 1fr; }
  .tm-range-row { grid-template-columns: 1fr; }
  .tm-matrix { grid-template-columns: 1fr; }
  .tm-chp-num { font-size: 42px; }
  .tm-actions .tm-btn { flex: 1 1 44%; }
  .tm-chp-ladder { gap: 3px; }
  .tm-chp-step { font-size: 10px; }
}

/* ---------- 打印 ---------- */
@media print {
  .tm-actions, .tm-textarea, .tm-history, .tsk-crumb-bar, .tm-preset-row { display: none !important; }
  .tm { padding: 0; background: #fff; }
  .tm-card, .tm-result { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .tm-hero { box-shadow: none; }
}

/* ---------- 全局对齐：面包屑 / 内容 / 底部区块统一 ---------- */
.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; }
}
