body.thm-body {
  background: #fbf6f0 !important;
  color: #2c2433 !important;
}
body.thm-body .shell-footer { position: static; }
body.thm-body main.shell-main.thm-main {
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 56px;
}
.thm-sheet { width: min(760px, 100%); margin: 0 auto; color: #2c2433; }
.thm-title, .thm-type, .thm-prompt, .thm-lead, .thm-skip, .thm-kicker, .thm-read, .thm-dim, .thm-hard, .thm-clip, .thm-safe, .thm-note, .thm-miss, .thm-bar-name, .thm-open {
  color: #2c2433;
}
.thm-title, .thm-type { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 12px 0 16px; }
.thm-lead, .thm-skip { font-size: 17px; line-height: 1.55; margin: 0 0 10px; }
.thm-skip, .thm-note, .thm-miss { color: #5c5164; }
.thm-gates { margin: 22px 0 18px; }
.thm-gate-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #eadfd4;
  cursor: pointer;
}
.thm-gate-row input {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 26px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}
.thm-pair { position: relative; width: 40px; height: 26px; flex: none; }
.thm-pair i {
  position: absolute;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  opacity: 0.38;
  pointer-events: none;
}
.thm-pair i:first-child { left: 0; background: #f3a07a; }
.thm-pair i:last-child { left: 14px; background: #6b3a7a; }
.thm-gate-row:has(input:checked) .thm-pair i { opacity: 0.82; mix-blend-mode: multiply; }
.thm-gate-row:has(input:checked) { color: #4a2158; }
.thm-start {
  margin-top: 18px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #6b3a7a;
  color: #fff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.thm-count { margin: 0; color: #6b3a7a; font-weight: 700; }
.thm-pips { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 16px; }
.thm-pip { width: 10px; height: 10px; border-radius: 50%; background: #f3d2c4; }
.thm-pip.is-in { background: #6b3a7a; }
.thm-prompt { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 8px 0 16px; }
.thm-ruler { display: flex; flex-wrap: wrap; gap: 8px; }
.thm-tick {
  flex: 1 1 17%;
  min-width: 108px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #2c2433;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.thm-tick:nth-child(1) { background: #fde6d8; }
.thm-tick:nth-child(2) { background: #f6c4ae; }
.thm-tick:nth-child(3) { background: #e7a0c0; }
.thm-tick:nth-child(4) { background: #b56aa8; color: #fff; }
.thm-tick:nth-child(5) { background: #6b3a7a; color: #fff; }
.thm-tick.is-on { outline: 3px solid #2c2433; outline-offset: 2px; }
.thm-board {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  grid-template-areas: "focus focus focus" "helper stage director" "watch watch watch";
  gap: 8px;
  margin: 0 0 8px;
  align-items: center;
}
.thm-bar-focus { grid-area: focus; }
.thm-bar-helper { grid-area: helper; }
.thm-bar-director { grid-area: director; }
.thm-bar-watcher { grid-area: watch; }
.thm-stage { grid-area: stage; width: 100%; height: auto; display: block; }
.thm-bar-name { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.thm-track { height: 8px; border-radius: 99px; background: #efe4da; overflow: hidden; }
.thm-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f3a07a, #6b3a7a); }
.thm-board.is-nope .thm-fill { background: #ddd4cc; }
.thm-note { min-height: 1.4em; margin: 8px 0 16px; }
.thm-kicker { font-size: 14px; letter-spacing: 0.08em; margin: 18px 0 6px; color: #6b3a7a; }
.thm-read, .thm-dim, .thm-hard, .thm-safe { font-size: 17px; line-height: 1.7; margin: 0; }
.thm-open { margin: 0; padding-left: 1.2em; }
.thm-open li { margin: 6px 0; line-height: 1.55; }
.thm-clip { font-weight: 700; margin: 12px 0; }
.thm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.thm-actions button, #thm-download {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #6b3a7a;
  background: #6b3a7a;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.thm-ghost { background: transparent !important; color: #6b3a7a !important; }
#thm-download[hidden], #thm-miss[hidden] { display: none; }
#thm-canvas { position: absolute; left: -9999px; }
@media (prefers-reduced-motion: reduce) {
  .thm-tick.is-on { outline-offset: 0; }
}
