/* Option A · Swiss Strip. All colours follow the existing page theme. */
.ft-dock.ft-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  padding: 8px 0;
  gap: 12px;
  color: var(--ink);
  font: 15px/1.4 Arial, Helvetica, sans-serif;
}
.ft-dock .ft-dock-transport,
.ft-dock .ft-dock-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.ft-dock .ft-dock-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.ft-dock .ft-dock-transport { border: 1px solid var(--ink); }
.ft-dock .ft-dock-utility { border: 1px solid var(--hair); }
.ft-dock.ft-dock button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: auto;
  min-width: 44px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ft-dock.ft-dock [data-ft="play"] {
  min-height: 44px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
.ft-dock.ft-dock [data-ft="play"][data-ft-state="playing"] {
  background: var(--teal);
  color: white;
}
html[data-theme="dark"] .ft-dock.ft-dock [data-ft="play"][data-ft-state="playing"] {
  color: var(--bg);
}
.ft-dock.ft-dock [data-ft="stop"] {
  border-left: 1px solid var(--ink);
  background: transparent;
}
.ft-dock .ft-dock-utility button {
  padding: 0;
  width: 44px;
  height: 44px;
}
.ft-dock .ft-dock-utility button + button { border-left: 1px solid var(--hair); }
.ft-dock.ft-dock [data-ft="status"] {
  flex: 0 1 auto;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 12px;
  color: var(--dim);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
.ft-dock.ft-dock [data-ft="status"]:empty { display: none; }
.ft-dock.ft-dock button:disabled { opacity: .45; cursor: default; }
.ft-dock.ft-dock [hidden] { display: none !important; }
[data-ft][data-ft-key]:focus-visible,
.ft-dock.ft-dock button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* The mask lives outside the label so tool-owned label updates cannot erase it. */
.ft-dock [data-ft="play"]::before,
.ft-dock [data-ft="stop"]::before,
.ft-dock [data-ft="sound"]::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: var(--ft-icon) center / contain no-repeat;
  mask: var(--ft-icon) center / contain no-repeat;
}
.ft-dock [data-ft="play"] {
  --ft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1l10 6-10 6z'/%3E%3C/svg%3E");
}
/* No Pause anywhere (his ruling 2026-10-31). A play control whose own label reads Stop shows the stop square. */
.ft-dock [data-ft="play"][data-ft-glyph="stop"] {
  --ft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1h12v12H1z'/%3E%3C/svg%3E");
}
.ft-dock [data-ft="stop"] {
  --ft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1h12v12H1z'/%3E%3C/svg%3E");
}
.ft-dock [data-ft="sound"] {
  --ft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 5h3l4-4v12l-4-4H1zM10 3v2a3 3 0 010 4v2a5 5 0 000-8z'/%3E%3C/svg%3E");
}
/* Sound off shows the struck-out speaker. All 34 sound tools set aria-pressed="true" for on, "false" for off. */
.ft-dock [data-ft="sound"][aria-pressed="false"] {
  --ft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 5h3l4-4v12l-4-4H1z'/%3E%3Cpath d='M9.6 4.8l3.6 4.4M13.2 4.8l-3.6 4.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ft-dock [data-ft="play"] > svg,
.ft-dock [data-ft="sound"] > svg { display: none; }
[data-ft][data-ft-key] { position: relative; }
[data-ft][data-ft-key]::after {
  content: attr(data-ft-key);
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  padding: 2px 5px;
  border: 1px solid var(--hair);
  background: var(--panel);
  color: var(--ink);
  font: 11px/1.4 Arial, Helvetica, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
[data-ft][data-ft-key]:hover::after,
[data-ft][data-ft-key]:focus-visible::after { opacity: 1; }
.ft-keys { color: var(--dim); font: 13px/1.6 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
@media (hover: none) {
  [data-ft][data-ft-key]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-dock, .ft-dock *, [data-ft][data-ft-key]::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* First visit: a gentle pulse on Play until it is pressed once (RULINGS_FREE_TOOLS.md, 2026-10-31 06:50). */
@keyframes ft-invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 59, 32, 0); } 50% { box-shadow: 0 0 0 6px rgba(196, 59, 32, .35); } }
.ft-dock.ft-dock [data-ft="play"]:not([data-ft-started]):not([data-ft-state="playing"]) { animation: ft-invite 1.8s ease-in-out 4; }
@media (prefers-reduced-motion: reduce) { .ft-dock.ft-dock [data-ft="play"] { animation: none !important; } }

/* RULINGS_FREE_TOOLS.md, 2026-10-31 06:49: tools with Play hide the Sound button; Play and Stop switch the sound. */
html[data-ft-sound="play"] .ft-dock [data-ft="sound"] { display: none !important; }

/* Release information, after the activity and before its guide. */
.ft-release.ft-release {
  box-sizing: border-box; grid-column: 1 / -1; width: calc(100% - 40px);
  max-width: 1040px; min-width: 0; margin: 24px auto; padding: 16px 0;
  border-block: 1px solid var(--hair); color: var(--dim);
  font: 15px/1.6 Arial, Helvetica, sans-serif; text-align: left;
  overflow-wrap: anywhere;
}
.ft-release.ft-release p { margin: 8px 0; }
.ft-release.ft-release a {
  display: inline-block; min-height: 44px; padding: 10px 0;
  color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
}
.ft-release.ft-release a:hover { color: var(--accent); }
.ft-release.ft-release a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
