/* Branded controls need an opaque surface: shared button backgrounds must not
   remove a logo or leave light lettering on a light panel. */
.integration-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
html body.runner-paper .integration-connect {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 12px 18px; max-width: 100%;
  border: 1px solid var(--paper-border,#becdbb) !important; border-radius: 12px;
  background: #fffef9 !important; color: #253c2c !important;
  font: inherit; font-weight: 700; line-height: 1.4;
  text-decoration: none; box-shadow: none; cursor: pointer;
}
html body.runner-paper .integration-connect :is(span,small,i) { color: inherit !important; opacity: 1; }
html body.runner-paper .integration-connect small { display: block; font-size: .8125rem; font-weight: 400; }
html body.runner-paper .integration-connect img { display: block; flex: none; object-fit: contain; }
html body.runner-paper .integration-connect .integration-garmin-icon {
  width: 44px; height: 44px; padding: 3px; border-radius: 8px; background: #152017;
}
html body.runner-paper .integration-connect .integration-wordmark { width: 110px; height: 28px; }
html body.runner-paper .integration-connect:hover { background: #e3ecdf !important; border-color: #315c3d !important; }
html body.runner-paper .integration-connect:focus-visible,
html body.runner-paper .btn.integration-logo-button:focus-visible { outline: 3px solid #315c3d; outline-offset: 4px; }
html body.runner-paper .btn.integration-logo-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; min-height: 64px; padding: 8px;
  background: #152017 !important; border: 1px solid #526453 !important; border-radius: 12px;
}
html body.runner-paper .btn.integration-logo-button img { display: block; width: 100%; height: 48px; object-fit: contain; }
html body.runner-paper .btn.integration-logo-button:hover { background: #253c2c !important; }
.btn.integration-coros-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .45rem .85rem; border: 1px solid #2375a5 !important;
  border-radius: 12px; background: linear-gradient(135deg,#102f49,#087bb8) !important;
  color: #fff !important; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 5px 16px rgba(3,91,145,.22);
}
.btn.integration-coros-button img { display:block; width:70px; height:24px; object-fit:contain; }
.btn.integration-coros-button:hover { background: linear-gradient(135deg,#174969,#078bd0) !important; border-color:#5db7e7 !important; }
.btn.integration-coros-button:focus-visible { outline:3px solid #53b5e7; outline-offset:3px; }
.coros-export-status { flex: 1 0 100%; min-height: 1.25em; margin: .35rem 0 0; color: #8fd7ff; font-size: .875rem; text-align: left; }
.coros-export-status:empty { display: none; }
html body.runner-paper .btn.integration-coros-button {
  background: #e7f5fb !important; border-color: #81bad2 !important; color: #124b68 !important;
  box-shadow: 0 4px 12px rgba(31,105,137,.12);
}
html body.runner-paper .btn.integration-coros-button:hover { background: #d7edf7 !important; border-color:#3982a5 !important; }
html body.runner-paper .coros-export-status { color:#175d79; }
@media(max-width:480px) { .integration-controls .integration-connect { width: 100%; justify-content: flex-start !important; } }
