.pa-tk-bar {
  --pa-tk-primary: #056e4f;
  --pa-tk-accent: #ff9900;
  --pa-tk-speed: 35s;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  z-index: 90;
}
.pa-tk-bar.is-light { background: #ffffff; color: #1b2420; }
.pa-tk-bar.is-dark { background: #0f172a; color: #f8fafc; border-bottom-color: rgba(255, 255, 255, 0.1); }
.pa-tk-bar.is-accent { background: var(--pa-tk-primary); color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.18); }

.pa-tk-bar.pos-sticky_bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 2px solid var(--pa-tk-accent);
  border-bottom: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
  z-index: 9990;
}

.pa-tk-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 5px 12px;
  gap: 12px;
}

.pa-tk-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pa-tk-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.pa-tk-bar.is-accent .pa-tk-badge,
.pa-tk-bar.is-dark .pa-tk-badge {
  background: var(--pa-tk-accent);
  color: #111a16;
}

.pa-tk-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.pa-tk-bar.mode-marquee .pa-tk-viewport {
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.pa-tk-track {
  display: flex;
  width: max-content;
  animation: paTkScroll var(--pa-tk-speed) linear infinite;
}
.pa-tk-bar.pause-on-hover .pa-tk-viewport:hover .pa-tk-track,
.pa-tk-bar.is-paused .pa-tk-track {
  animation-play-state: paused;
}

.pa-tk-group {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pa-tk-fade-list {
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: center;
}
.pa-tk-fade-slide {
  display: none;
  animation: paTkFadeIn 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pa-tk-fade-slide.is-active {
  display: block;
}

.pa-tk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pa-tk-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.pa-tk-item a:hover {
  text-decoration: underline;
  color: #ffee00;
}
.pa-tk-bar.is-light .pa-tk-item a:hover {
  color: var(--pa-tk-primary);
}
.pa-tk-text {
  font-weight: 600;
}
.pa-tk-date {
  opacity: 0.85;
  font-size: 13px;
}

.pa-tk-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(5, 110, 79, 0.25);
  background: rgba(5, 110, 79, 0.12);
  color: var(--pa-tk-primary);
}
.pa-tk-bar.is-accent .pa-tk-tag,
.pa-tk-bar.is-dark .pa-tk-tag {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffee00;
}

.pa-tk-sep {
  margin: 0 18px;
  color: var(--pa-tk-accent);
  font-weight: 800;
}

.pa-tk-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pa-tk-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pa-tk-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.pa-tk-bar.is-light .pa-tk-btn:hover {
  background: rgba(5, 110, 79, 0.1);
}

/* High Contrast WCAG */
body.pa-high-contrast .pa-tk-bar {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffff00 !important;
}
body.pa-high-contrast .pa-tk-badge {
  background: #ffff00 !important;
  color: #000000 !important;
}

@keyframes paTkScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes paTkFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pa-tk-track { animation: none; }
}
@media (max-width: 640px) {
  .pa-tk-badge span { display: none; }
  .pa-tk-badge { padding: 6px 8px; }
}
