.tool-service-banner { display: none; }
.tool-service-banner[hidden] { display: none !important; }
.tool-service-banner-action[hidden],
.tool-service-banner-controls[hidden],
.tool-service-banner-pause[hidden],
.tool-service-banner-progress[hidden] { display: none !important; }
.tool-service-banner-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.tool-service-banner-badge {
  color: #9fa8ff;
  font-family: var(--dark-mono, monospace);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}
@media (min-width: 1100px) {
  .tool-service-banner:not([hidden]) {
    position: relative;
    display: grid;
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid #343a55;
    border-left: 3px solid #7c3aed;
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .15), rgba(17, 20, 31, .94) 48%);
    padding: 9px 11px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  }
  .tool-service-banner-slide {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
  }
  .tool-service-banner-progress {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6 68%, #b8a5ff);
    box-shadow: 0 0 9px rgba(139, 92, 246, .72);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
    will-change: transform;
  }
  .tool-service-banner-badge {
    border: 1px solid rgba(165, 180, 252, .23);
    border-radius: 999px;
    background: rgba(99, 102, 241, .14);
    padding: 6px 8px;
    white-space: nowrap;
  }
  .tool-service-banner-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 10px;
  }
  .tool-service-banner-copy strong {
    display: block;
    max-width: 45%;
    flex: 0 1 auto;
    overflow: hidden;
    margin: 0;
    color: #eceef7;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-service-banner-copy p {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    margin: 0;
    color: #8c92a8;
    font-size: 10px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-service-banner-action {
    display: inline-flex;
    min-height: 34px;
    max-width: 150px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #655ad1;
    border-radius: 6px;
    background: rgba(99, 102, 241, .14);
    color: #d7d9ff;
    padding: 7px 11px;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-service-banner-action:hover {
    border-color: #8b7ff4;
    background: rgba(99, 102, 241, .24);
    color: #fff;
  }
  .tool-service-banner-action:focus-visible,
  .tool-service-banner-controls button:focus-visible {
    outline: 3px solid rgba(129, 140, 248, .34);
    outline-offset: 2px;
  }
  .tool-service-banner-controls {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .tool-service-banner-controls button {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #414866;
    border-radius: 6px;
    background: #171b2a;
    color: #c9cde0;
    padding: 0 0 2px;
    font: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
  }
  .tool-service-banner-controls button:hover {
    border-color: #7668ec;
    background: rgba(99, 102, 241, .18);
    color: #fff;
  }
  .tool-service-banner-pause { position: relative; padding: 0; }
  .tool-service-banner-pause::before,
  .tool-service-banner-pause::after {
    position: absolute;
    top: 7px;
    width: 3px;
    height: 11px;
    border-radius: 1px;
    background: currentColor;
    content: '';
  }
  .tool-service-banner-pause::before { left: 8px; }
  .tool-service-banner-pause::after { right: 8px; }
  .tool-service-banner-pause.is-paused::before {
    top: 7px;
    left: 10px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    border-radius: 0;
    background: transparent;
  }
  .tool-service-banner-pause.is-paused::after { display: none; }
  .tool-service-banner-counter {
    width: 34px;
    flex: 0 0 34px;
    color: #737b96;
    font-family: var(--dark-mono, monospace);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
  }
  .tool-service-banner.is-changing .tool-service-banner-slide {
    animation: tool-service-banner-enter .34s ease both;
  }
  @keyframes tool-service-banner-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
  }
}
@media (min-width: 1100px) and (max-width: 1250px) {
  .tool-service-banner-copy p { display: none; }
  .tool-service-banner-copy strong { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-service-banner-progress { display: none !important; }
  .tool-service-banner * {
    animation: none !important;
    transition: none !important;
  }
}
