.howto-tldr {
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #3b82f6) 9%, var(--bg, #fff));
  border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 38%, var(--line, #ddd));
}

.howto-tldr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.howto-tldr .howto-tldr-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, inherit);
}

.howto-pin {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line, #ccc);
  background: var(--surface, transparent);
  color: var(--muted, inherit);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.howto-pin:hover {
  border-color: var(--accent, currentColor);
  color: var(--ink, inherit);
}
.howto-pin.is-on {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: var(--bg, #fff);
}

.howto-pin .when-on,
.howto-pin.is-on .when-off {
  display: none;
}

.howto-pin.is-on .when-on {
  display: inline;
}

.howto-pin-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.howto-tldr-list {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink, inherit);
}
.howto-tldr-list li + li {
  margin-top: 3px;
}
.howto-tldr-list li::marker {
  color: var(--accent, currentColor);
  font-weight: 600;
}

.howto-full-heading {
  margin: 6px 2px -2px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, inherit);
}

.howto-fig {
  margin: 10px 0 2px;
}
.howto-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  background: var(--surface, transparent);
  border: 1px solid var(--line, #ddd);
}
.howto-fig figcaption {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted, inherit);
  text-align: center;
}

.howto-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 12px;
}

.howto-dock-slot {
  width: 100%;
  max-width: 980px;
  margin: 8px auto 0;
  padding: 0 12px;
  box-sizing: border-box;
}
.howto-dock-slot[hidden] {
  display: none;
}

.howto-dock {
  font-family: var(--font-game, inherit);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 40%, var(--line, #ddd));
  color: var(--ink, inherit);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.howto-dock .howto-tldr-list {
  padding: 0 14px 10px 34px;
  font-size: 14.5px;
  line-height: 1.4;
}
.howto-dock.is-min .howto-tldr-list {
  display: none;
}

.howto-dock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
}
.howto-dock-bar button {
  font: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
}
.howto-dock-bar button:hover {
  background: var(--surface-hover, color-mix(in srgb, var(--ink, #000) 7%, transparent));
}
.howto-dock-bar svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.howto-dock-toggle {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}
.howto-dock-toggle svg {
  color: var(--accent, currentColor);
  transition: transform 0.2s;
}
.is-min .howto-dock-toggle svg {
  transform: rotate(-90deg);
}

.howto-dock-more {
  padding: 4px 10px;
  font-size: 13.5px;
  color: var(--accent, inherit) !important;
  white-space: nowrap;
}

.howto-dock-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted, inherit) !important;
}

@media (max-width: 600px) {
  .howto-dock-slot {
    margin-top: 6px;
    padding: 0 8px;
  }
  .howto-dock .howto-tldr-list {
    font-size: 13.5px;
    padding-left: 30px;
  }
}
