body.tbt-body {
  background: #f3f5f8 !important;
  color: #1c2128 !important;
}
body.tbt-body .shell-footer { position: static; }
body.tbt-body main.shell-main.tbt-main {
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 56px;
}
.tbt-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #1c2128;
}
.tbt-title, .tbt-type, .tbt-prompt, .tbt-lead, .tbt-skip, .tbt-kicker, .tbt-read, .tbt-dim, .tbt-hard, .tbt-clip, .tbt-safe, .tbt-note, .tbt-miss, .tbt-tag, .tbt-end, .tbt-zone-name, .tbt-axis {
  color: #1c2128;
}
.tbt-title, .tbt-type {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 12px 0 16px;
  letter-spacing: 0;
}
.tbt-lead, .tbt-skip { font-size: 17px; line-height: 1.55; margin: 0 0 10px; }
.tbt-skip { color: #4d5662; }
.tbt-gates { margin: 22px 0 18px; }
.tbt-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 2px;
  border-bottom: 2px solid #c5ceda;
  font-size: 16px;
  line-height: 1.45;
}
.tbt-gate-row:has(input:checked) {
  border-bottom-color: #1d3a6e;
  color: #1d3a6e;
}
.tbt-gate-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: #1d3a6e; }
.tbt-start, .tbt-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #f7f9fb;
  background: #1d3a6e;
}
.tbt-start { margin-top: 8px; }
.tbt-start:disabled { opacity: 0.45; cursor: default; }
.tbt-ghost { background: transparent; color: #1d3a6e; border: 1px solid #1d3a6e; }
.tbt-miss { color: #9a3b24; }
.tbt-count { margin: 0 0 8px; font-weight: 700; }
.tbt-pips { display: flex; gap: 3px; margin-bottom: 18px; }
.tbt-pip { flex: 1; height: 4px; background: #d5dbe3; }
.tbt-pip.is-in { background: #1d3a6e; }
.tbt-ask.is-flex .tbt-pip.is-in { background: #6e647c; }
.tbt-prompt { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 8px 0 8px; }
.tbt-tag { margin: 0 0 8px; font-weight: 700; color: #6e647c; letter-spacing: 0.08em; }
.tbt-ends { display: flex; justify-content: space-between; font-size: 13px; color: #4d5662; margin-bottom: 8px; }
.tbt-ends[hidden], .tbt-tag[hidden], #tbt-download[hidden] { display: none; }
.tbt-ruler { display: flex; flex-wrap: wrap; gap: 8px; }
.tbt-tick {
  flex: 1 1 17%;
  min-width: 92px;
  min-height: 52px;
  border: 1px solid #c5ceda;
  background: #f7f9fb;
  color: #1c2128;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.tbt-tick:hover, .tbt-tick:focus-visible { border-color: #1d3a6e; outline: none; }
.tbt-tick.is-on.is-left { transform: translateX(-8px); background: #f6c7ba; border-color: #e36a4a; }
.tbt-tick.is-on.is-right { transform: translateX(8px); background: #c9d4e8; border-color: #1d3a6e; }
.tbt-tick.is-on.is-mid { background: #e4e8ee; }
.tbt-ask.is-flex .tbt-tick.is-on { transform: none; background: #ddd4e6; border-color: #6e647c; color: #1c2128; }
.tbt-figure { margin: 0 0 18px; }
.tbt-plane {
  position: relative;
  height: min(420px, 72vw);
  background-color: #f7f9fb;
  background-image: linear-gradient(#d7dee8 1px, transparent 1px), linear-gradient(90deg, #d7dee8 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid #c5ceda;
  overflow: hidden;
}
.tbt-zone {
  position: absolute;
  border: 1px dashed #1d3a6e;
  background: rgba(29, 58, 110, 0.08);
}
.tbt-plane.is-shou .tbt-zone, .tbt-plane.is-zuigong .tbt-zone {
  border-color: #e36a4a;
  background: rgba(227, 106, 74, 0.12);
}
.tbt-plane.is-switch .tbt-zone, .tbt-plane.is-mid .tbt-zone {
  border-color: #6e647c;
  background: rgba(110, 100, 124, 0.12);
}
.tbt-zone-name {
  position: absolute;
  z-index: 2;
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 22px);
  pointer-events: none;
}
.tbt-stem {
  position: absolute;
  bottom: 0;
  width: 1px;
  background: #1c2128;
}
.tbt-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-bottom: -14px;
  border-radius: 50%;
  background: #1d3a6e;
  box-shadow: 0 0 0 6px rgba(29, 58, 110, 0.18);
  z-index: 3;
}
.tbt-dot.is-coral { background: #e36a4a; box-shadow: 0 0 0 6px rgba(227, 106, 74, 0.2); }
.tbt-dot.is-mix { background: #6e647c; box-shadow: 0 0 0 6px rgba(110, 100, 124, 0.2); }
.tbt-arrow { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.tbt-arrow.is-on { display: block; }
.tbt-axis { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; }
.tbt-bar {
  position: relative;
  flex: 1;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e36a4a, #d7c2b4 50%, #1d3a6e);
}
.tbt-mark {
  position: absolute;
  top: -4px;
  width: 6px;
  height: 22px;
  margin-left: -3px;
  background: #1c2128;
  border-radius: 2px;
}
.tbt-note { min-height: 1.4em; font-weight: 700; }
.tbt-kicker { font-size: 14px; letter-spacing: 0.12em; margin: 22px 0 8px; color: #1d3a6e; }
.tbt-read, .tbt-dim, .tbt-hard, .tbt-safe { font-size: 17px; line-height: 1.7; }
.tbt-open { padding-left: 1.2em; font-size: 17px; line-height: 1.6; }
.tbt-clip { font-weight: 700; }
.tbt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
@media (prefers-reduced-motion: reduce) {
  .tbt-tick.is-on.is-left, .tbt-tick.is-on.is-right { transform: none; }
}
