/* The connector's landing page (connect.css), /connect: the address to add, in the same frosted bar
 * as the email field, with Copy (the script shows it); then a button per app that opens its screen
 * for adding a connector, with the app's tile, and the line on what the AI can see. It reads down
 * the page, so it starts higher. */
[data-page='connect'] .cc-connect-page {
  padding-top: max(32px, calc(50vh - 380px), env(safe-area-inset-top));
}
.cc-connect-address {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 460px;
  max-width: 100%;
  min-height: 58px;
  margin-top: 26px;
  padding: 6px 6px 6px 20px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.86);
  box-shadow:
    inset 0 0 0 1px var(--cn-line),
    0 1px 0 var(--cn-white),
    var(--cn-lift);
}
.cc-connect-url {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--cn-navy);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  user-select: all;
}
.cc-connect-copy {
  flex-shrink: 0;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--cn-blue);
  color: var(--cn-white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cc-connect-copy:hover {
  background: var(--cn-blue-down);
}
.cc-connect-copy[data-copied] {
  background: var(--cn-frost);
  color: var(--cn-blue);
}

/* The rows' padding hangs outside the address's edges, so the tiles line up under it. */
.cc-connect-apps {
  display: grid;
  width: min(484px, calc(100% + 24px));
  margin: 24px -12px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
/* The separators start after the tiles, as in a settings list. */
.cc-connect-apps li + li::before {
  content: '';
  display: block;
  height: 1px;
  margin: 0 12px 0 66px;
  background: var(--cn-line);
}
/* Each app is one button: its tile, its name, one line, and Add. */
.cc-connect-add {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.cc-connect-add:active {
  background: var(--cn-hover);
}
.cc-connect-add img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 21.7%;
  box-shadow: 0 6px 14px -8px rgb(12 23 59 / 0.45);
}
.cc-connect-add-text {
  flex: 1;
  min-width: 0;
}
.cc-connect-add strong {
  font-size: 15px;
  font-weight: 700;
}
.cc-connect-add em {
  margin-left: 6px;
  color: var(--cn-ink-3);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
}
/* The line and, once the script has copied the address, "Address copied" in its place. */
.cc-connect-add-lines {
  display: grid;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
}
.cc-connect-add-lines > * {
  grid-area: 1 / 1;
}
.cc-connect-add-line {
  color: var(--cn-ink-2);
}
.cc-connect-add-done {
  visibility: hidden;
  color: var(--cn-blue);
  font-weight: 600;
  opacity: 0;
}
.cc-connect-add[data-copied] .cc-connect-add-done {
  visibility: visible;
  animation: cn-copied 2400ms ease-out both;
}
.cc-connect-add[data-copied] .cc-connect-add-line {
  animation: cn-copied-under 2400ms ease-out both;
}
.cc-connect-add-go {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px 0 15px;
  border-radius: 999px;
  background: var(--cn-frost);
  color: var(--cn-blue);
  font-size: 14px;
  font-weight: 700;
}
/* Under a pointer the row lights up, its separators give way and Add fills with the blue. */
@media (hover: hover) {
  .cc-connect-add:hover {
    background: var(--cn-hover);
  }
  .cc-connect-apps li:hover::before,
  .cc-connect-apps li:hover + li::before {
    visibility: hidden;
  }
  .cc-connect-add:hover .cc-connect-add-go {
    background: var(--cn-blue);
    color: var(--cn-white);
  }
}
.cc-connect-add-arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A fade only, so it runs with reduced motion too (the script waits for its end). */
@keyframes cn-copied {
  0% {
    opacity: 0;
  }
  10%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cn-copied-under {
  0% {
    opacity: 1;
  }
  8%,
  82% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.cc-connect-privacy {
  max-width: 30em;
  margin-top: 24px;
}
@media (max-width: 560px) {
  .cc-connect-address {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .cc-connect-url {
    font-size: 15px;
    text-align: center;
  }
}
