.connect-label {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.connect-list + .connect-label { margin-top: 16px; }

.connect-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.connect-list li {
  --list-tile: linear-gradient(160deg, #5BE38B, #13A452);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M5.85 11.15a1.2 1.2 0 0 0-1.7 1.7l4 4a1.2 1.2 0 0 0 1.7 0l10-10a1.2 1.2 0 0 0-1.7-1.7L9 14.3Z'/%3E%3C/svg%3E");
  --list-glow: rgba(19, 164, 82, 0.42);
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: radial-gradient(260px 120% at 28px 50%, color-mix(in srgb, var(--list-glow) 30%, transparent), color-mix(in srgb, var(--list-glow) 8%, transparent) 45%, transparent 72%);
  transition: transform 0.22s var(--ease-quint), background-color 0.22s ease, box-shadow 0.22s ease;
}

.connect-list li::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    var(--list-glyph) center / 19px 19px no-repeat,
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    var(--list-tile);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(22, 26, 44, 0.14),
    0 1px 2px rgba(22, 26, 44, 0.08),
    0 8px 16px -6px var(--list-glow);
}

.connect-list li > span:not([class]),
.connect-list li > strong { grid-column: 2; }

.connect-list li > strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.connect-list li > strong + span {
  display: block;
  margin-top: -6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

@media (hover: hover) {
  .connect-list li:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 22px -16px rgba(38, 42, 82, 0.3);
  }
}

.connect-list li[data-scope="capture"] {
  --list-tile: linear-gradient(160deg, #6BAAFF, #2F6BFF);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 3h10a2 2 0 0 1 2 2v15.2a.8.8 0 0 1-1.3.6L12 16.6l-5.7 4.2a.8.8 0 0 1-1.3-.6V5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
  --list-glow: rgba(47, 107, 255, 0.5);
}

.connect-list li[data-scope="write.items"] {
  --list-tile: linear-gradient(160deg, #5BE38B, #13A452);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 0 1 2 0v1h1a3 3 0 0 1 3 3v2H2V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1ZM2 11h20v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-8Zm4 3v2h2v-2H6Zm5 0v2h2v-2h-2Zm5 0v2h2v-2h-2ZM6 18v2h2v-2H6Zm5 0v2h2v-2h-2Z'/%3E%3C/svg%3E");
  --list-glow: rgba(19, 164, 82, 0.45);
}

.connect-list li[data-scope="read.agenda"] {
  --list-tile: linear-gradient(160deg, #C9A2FF, #7C4DFF);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M12 4.5c4.9 0 8.7 3.2 10.3 6.7a1.9 1.9 0 0 1 0 1.6c-1.6 3.5-5.4 6.7-10.3 6.7s-8.7-3.2-10.3-6.7a1.9 1.9 0 0 1 0-1.6C3.3 7.7 7.1 4.5 12 4.5Zm0 3a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Zm0 2.3a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/svg%3E");
  --list-glow: rgba(124, 77, 255, 0.45);
}

.connect-list li[data-scope="write.memories"] {
  --list-tile: linear-gradient(160deg, #FF9BCB, #E8448F);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M10.05 3.3a1 1 0 0 1 1.9 0l1.25 3.86a3 3 0 0 0 1.93 1.93l3.86 1.25a1 1 0 0 1 0 1.9l-3.86 1.25a3 3 0 0 0-1.93 1.93l-1.25 3.86a1 1 0 0 1-1.9 0l-1.25-3.86a3 3 0 0 0-1.93-1.93L2.01 12.24a1 1 0 0 1 0-1.9l3.86-1.25A3 3 0 0 0 7.8 7.16ZM18.4 14.6a.65.65 0 0 1 1.2 0l.48 1.32 1.32.48a.65.65 0 0 1 0 1.2l-1.32.48-.48 1.32a.65.65 0 0 1-1.2 0l-.48-1.32-1.32-.48a.65.65 0 0 1 0-1.2l1.32-.48Z'/%3E%3C/svg%3E");
  --list-glow: rgba(232, 68, 143, 0.45);
}

.connect-list li[data-scope="read.jobs"],
.connect-list li[data-scope="read.email"] {
  --list-tile: linear-gradient(160deg, #6FE6D9, #0FA897);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M5 4h14a3 3 0 0 1 3 3v.4l-9.5 5.7a1 1 0 0 1-1 0L2 7.4V7a3 3 0 0 1 3-3ZM2 9.7l8.5 5.1a3 3 0 0 0 3 0L22 9.7V17a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3Z'/%3E%3C/svg%3E");
  --list-glow: rgba(15, 168, 151, 0.45);
}

.connect-list li[data-scope="rerun.jobs"] {
  --list-tile: linear-gradient(160deg, #FFC56B, #F08A12);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-9.66 7.4 1 1 0 0 0 1.93.52A8 8 0 0 1 18.6 7H16a1 1 0 0 0 0 2h5a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2.25A9.97 9.97 0 0 0 12 2Zm8.7 12.08a1 1 0 0 0-1.93-.52A8 8 0 0 1 5.4 17H8a1 1 0 0 0 0-2H3a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-2.25A10 10 0 0 0 20.7 14.08Z'/%3E%3C/svg%3E");
  --list-glow: rgba(240, 138, 18, 0.45);
}

.connect-list li[data-scope="read.files"] {
  --list-tile: linear-gradient(160deg, #8FB4FF, #4B63E6);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M6 2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm2 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2Zm0 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2Zm0 4a1 1 0 1 0 0 2h5a1 1 0 1 0 0-2Z'/%3E%3C/svg%3E");
  --list-glow: rgba(75, 99, 230, 0.45);
}

.connect-list li[data-scope="write.files"] {
  --list-tile: linear-gradient(160deg, #FF9F8A, #E5533A);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.500V4.500M7.500 9 12 4.500 16.500 9M5 19.500h14'/%3E%3C/g%3E%3C/svg%3E");
  --list-glow: rgba(229, 83, 58, 0.45);
}

.connect-list li[data-scope="read.shared"] {
  --list-tile: linear-gradient(160deg, #FFB8D9, #C2569A);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M9 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm7.5 1a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7ZM9 13c4.4 0 7 2.2 7 5.2V20a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-1.8C2 15.2 4.6 13 9 13Zm8.3.1c2.7.4 4.7 2.1 4.7 4.6V20a1 1 0 0 1-1 1h-3.2c.13-.3.2-.64.2-1v-1.8a6 6 0 0 0-.7-3.1Z'/%3E%3C/svg%3E");
  --list-glow: rgba(194, 86, 154, 0.45);
}

.connect-list li[data-scope="write.shared"] {
  --list-tile: linear-gradient(160deg, #B9C2D6, #5E6782);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='12' cy='7' r='4.5'/%3E%3Cpath d='M12 13c-5.4 0-9 2.8-9 6.4 0 1.5 1 2.6 2.5 2.6h13c1.5 0 2.5-1.1 2.5-2.6 0-3.6-3.6-6.4-9-6.4Z'/%3E%3C/svg%3E");
  --list-glow: rgba(94, 103, 130, 0.45);
}

.connect-list[data-tone="no"] { color: var(--ink-soft); }

.connect-list[data-tone="no"] li {
  --list-tile: linear-gradient(160deg, #FFA8B4, #F2547A);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M7 10V7a5 5 0 0 1 10 0v3h1a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h1Zm2 0h6V7a3 3 0 0 0-6 0v3Zm3 4a2 2 0 0 0-1 3.73V19a1 1 0 0 0 2 0v-1.27A2 2 0 0 0 12 14Z'/%3E%3C/svg%3E");
  --list-glow: rgba(242, 84, 122, 0.42);
}

.connect-list[data-tone="no"] li[data-scope="see"] { --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M4.500 4.500l15 15' stroke='%23000' stroke-width='5.600' stroke-linecap='round'/%3E%3C/mask%3E%3Cg mask='url(%23m)'%3E%3Cpath fill-rule='evenodd' d='M12 4.5c4.9 0 8.7 3.2 10.3 6.7a1.9 1.9 0 0 1 0 1.6c-1.6 3.5-5.4 6.7-10.3 6.7s-8.7-3.2-10.3-6.7a1.9 1.9 0 0 1 0-1.6C3.3 7.7 7.1 4.5 12 4.5Zm0 3a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Zm0 2.3a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.500 4.500l15 15'/%3E%3C/g%3E%3C/svg%3E"); }

body:not([data-boot="wait"]) .connect-list li { animation: connect-rise 0.45s var(--ease-quint) both; }

body:not([data-boot="wait"]) .connect-list li::before { animation: connect-tile 0.5s var(--ease-quint) both; }

body:not([data-boot="wait"]) .connect-list li:nth-child(2), body:not([data-boot="wait"]) .connect-list li:nth-child(2)::before { animation-delay: 60ms; }

body:not([data-boot="wait"]) .connect-list li:nth-child(3), body:not([data-boot="wait"]) .connect-list li:nth-child(3)::before { animation-delay: 120ms; }

body:not([data-boot="wait"]) .connect-list li:nth-child(4), body:not([data-boot="wait"]) .connect-list li:nth-child(4)::before { animation-delay: 180ms; }

body:not([data-boot="wait"]) .connect-list li:nth-child(5), body:not([data-boot="wait"]) .connect-list li:nth-child(5)::before { animation-delay: 240ms; }

body:not([data-boot="wait"]) .connect-list li:nth-child(n + 6), body:not([data-boot="wait"]) .connect-list li:nth-child(n + 6)::before { animation-delay: 300ms; }

.connect-granted {
  grid-column: 2;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.3;
}

.checklist-text > .connect-granted { grid-column: auto; margin-top: 2px; }

.connect-list li:has(> strong) { grid-template-rows: auto auto; }
.connect-list li:has(> strong)::before { grid-row: 1 / 3; }
.connect-list li:has(> strong) > strong { align-self: end; }
.connect-list li:has(> strong) > strong + span { align-self: start; margin-top: 2px; }
.connect-list li[data-granted]:has(> strong) { grid-template-rows: auto auto auto; }
.connect-list li[data-granted]:has(> strong)::before { grid-row: 1 / 4; }

.badge-logo {
  overflow: hidden;
  background: #FFFFFF;
}

.badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-person.connect-known {
  background: #FFFFFF;
  color: var(--ink);
}

.badge-person.connect-known[data-brand] {
  background: var(--brand-mesh);
  color: #FFFFFF;
}

.connect-known[data-brand] .icon { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14)); }

.badge .connect-known .icon {
  width: 16px;
  height: 16px;
}

.tag[data-kind] {
  --tag-wash: var(--tone-info-wash);
  padding-left: 7px;
  background: radial-gradient(76px circle at 15px 50%, var(--tag-wash), #FFFFFF) padding-box, var(--tag-rim) border-box;
}

.tag[data-kind]::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--kind-glyph) center / contain no-repeat;
}

.tag[data-kind="assistant"] { --kind-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231E7BFF'%3E%3Cpath d='M6.5 1.8c.4 2.9 1.4 3.9 4.3 4.3-2.9.4-3.9 1.4-4.3 4.3-.4-2.9-1.4-3.9-4.3-4.3 2.9-.4 3.9-1.4 4.3-4.3zM12 9.2c.2 1.5.8 2.1 2.3 2.3-1.5.2-2.1.8-2.3 2.3-.2-1.5-.8-2.1-2.3-2.3 1.5-.2 2.1-.8 2.3-2.3z'/%3E%3C/svg%3E"); }

.tag[data-kind="extension"] { --kind-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A63DFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5h2.2a1.6 1.6 0 1 1 3.2 0H10.5v2.2a1.6 1.6 0 1 1 0 3.2V13H3z'/%3E%3C/svg%3E"); }

.tag[data-kind="extension"] { --tag-wash: var(--tone-lilac-wash); }

.tag[data-kind="integration"] { --kind-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300D4BE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5v3M10 2.5v3M4.3 5.5h7.4v2a3.7 3.7 0 0 1-7.4 0zM8 11.2v2.3'/%3E%3C/svg%3E"); }

.tag[data-kind="integration"] { --tag-wash: var(--tone-teal-wash); }

.connect-return {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.connect-return:empty { display: none; }

.connect-confirm {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.connect-confirm .tile-text { color: var(--ink); }

.authorize {
  display: grid;
  justify-items: center;
  text-align: center;
}

.authorize-header {
  display: grid;
  justify-items: center;
}

.authorize-header .account-title,
.authorize-header .account-lede { text-wrap: balance; }

.authorize-header .tile-tags {
  justify-content: center;
  margin-top: 16px;
}

.authorize-pair {
  --pair-mark: 64px;
  --pair-link: 72px;
  display: flex;
  align-items: center;
  margin: 0 0 28px;
}

.authorize-mark {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--pair-mark);
  height: var(--pair-mark);
  overflow: hidden;
  border: 1px solid var(--glass-rim);
  border-radius: 50%;
  background: var(--glass-card);
  box-shadow: var(--shadow-chip);
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.authorize-mark .icon {
  width: 28px;
  height: 28px;
}

.authorize-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.authorize-mark[data-unknown] {
  border: 1px dashed rgba(22, 26, 44, 0.28);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  color: var(--ink-faint);
}

.authorize-link {
  position: relative;
  width: var(--pair-link);
  height: 1px;
  margin: 0 12px;
  background: var(--ink-line);
}

.authorize-link::before {
  content: '';
  position: absolute;
  inset: -0.5px 0;
  border-radius: 1px;
  background: var(--prism);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}

.authorize-dot {
  position: absolute;
  top: -3px;
  left: -3.5px;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(22, 26, 44, 0.18);
  border-radius: 50%;
  background: var(--thread-dot);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
  opacity: 0;
}

.authorize-check {
  position: absolute;
  top: -12px;
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink) center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.2 4 7.3 8.2 2.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-ink);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease 0.3s, transform 0.45s var(--ease-out) 0.3s;
}

.authorize:is([data-state="signin"], [data-state="fresh"], [data-state="ready"]) .authorize-dot {
  animation: authorize-travel 2.4s cubic-bezier(0.45, 0, 0.55, 1) 0.9s infinite;
}

.authorize[data-state="done"] .authorize-link::before { transform: scaleX(1); }

.authorize[data-state="done"] .authorize-check {
  opacity: 1;
  transform: none;
}

body:not([data-boot="wait"]) .authorize[data-state="done"] .authorize-mark { animation: authorize-glow 1s var(--ease-out) 0.3s; }

.authorize[data-state="declined"] .authorize-link {
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.authorize[data-state="problem"] .authorize-link {
  background: linear-gradient(90deg, var(--ink-line) 0 32%, transparent 32% 68%, var(--ink-line) 68%);
}

body:not([data-boot="wait"]) .authorize-mark:first-child { animation: authorize-left 0.7s var(--ease-out) both; }

body:not([data-boot="wait"]) .authorize-mark:last-child { animation: authorize-right 0.7s var(--ease-out) both; }

body:not([data-boot="wait"]) .authorize-link { animation: authorize-draw 0.55s var(--ease-out) 0.2s both; }

.authorize-card { text-align: left; }

.authorize-card .connect-label {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0;
}

.authorize-card .checklist-label > strong { white-space: normal; }

.authorize-card .connect-granted { margin-top: 2px; }

body:not([data-boot="wait"]) .authorize-card .checklist-items > li {
  animation: connect-rise 0.45s var(--ease-quint) both;
  animation-delay: calc(var(--row, 0) * 60ms);
}

.authorize-panel {
  box-sizing: border-box;
  margin-top: 20px;
}

.authorize-panel-body {
  display: grid;
  gap: 14px;
}

.authorize-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
}

.authorize-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: var(--shadow-dot);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.authorize-who {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.authorize-who strong {
  color: var(--ink);
  font-weight: 500;
}

.authorize-account form {
  flex: none;
  margin: 0;
}

.authorize-account .link { font-size: 14px; }

.authorize-done { color: var(--ink); }

.authorize-return {
  margin-top: 16px;
  color: var(--ink-soft);
  text-align: center;
  text-wrap: balance;
}

.connect-pair > span + span { margin-left: -10px; }

.connect-pair .icon-orrivo { color: var(--ink); }

.connect-pair[data-state="live"] > span { animation: connect-ring 1.1s var(--ease-out) 2; }

.assistant-page .console-section:first-of-type { margin-top: 0; }
.assistant-page .console-head { align-items: flex-end; }

.assistant-address {
  min-height: 42px;
  max-width: min(100%, 420px);
  padding-left: 12px;
  border-color: var(--glass-rim);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 0.5px var(--glass-hair), 0 1px 2px rgba(38, 42, 82, 0.06), 0 6px 12px -8px rgba(38, 42, 82, 0.22);
}

.assistant-address .copy-value { font-size: 12.5px; }

.assistant-grid > .assistant-services { grid-column: span 5; }
.assistant-grid > .assistant-setup { grid-column: span 7; }

.assistant-services,
.assistant-setup {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.assistant-signin { gap: 14px; padding-bottom: 20px; }
.assistant-signin .paper-sub { margin: 0 2px; }
.assistant-signin .paper-sub .link { font-size: inherit; }

@media (max-width: 860px) {
  .assistant-grid > .assistant-services, .assistant-grid > .assistant-setup { grid-column: span 12; }
}

.assistant-pick { padding: 12px; }

.assistant-picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.assistant-thumb {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: var(--thumb-w, 0);
  height: var(--thumb-h, 0);
  border: 1px solid var(--glass-rim);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px #39446110, 0 10px 20px -12px #46536e40;
  transform: translate(var(--thumb-x, 0), var(--thumb-y, 0));
  transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out), height 0.38s var(--ease-out);
  pointer-events: none;
}

.assistant-picker[data-still] .assistant-thumb { transition: none; }

.assistant-option {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 104px;
  padding: 14px 6px 12px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--ink-soft);
  font: 500 13px/1.25 var(--font-body);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.16s var(--ease-quint);
}

.assistant-option-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--paper-mesh);
  box-shadow: var(--modal-icon-raised-shadow), 0 8px 14px -10px var(--paper-tone);
  color: #FFFFFF;
  transition: transform 0.24s var(--ease-quint), box-shadow 0.24s ease;
}

.assistant-option-icon .icon { width: 19px; height: 19px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14)); }

.assistant-option-name { max-width: 100%; overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }

.assistant-option-method {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-option[aria-checked="true"] { color: var(--ink); cursor: default; }
.assistant-option[aria-checked="true"] .assistant-option-method { color: color-mix(in srgb, var(--paper-tone) 70%, var(--ink)); }
.assistant-option[aria-checked="true"] .assistant-option-icon { animation: connect-pop 0.42s var(--ease-out); box-shadow: var(--modal-icon-raised-shadow), 0 10px 18px -8px var(--paper-tone); }

@media (hover: hover) {
  .assistant-option[aria-checked="false"]:hover { background-color: rgba(255, 255, 255, 0.5); color: var(--ink); }
  .assistant-option[aria-checked="false"]:hover .assistant-option-icon { transform: translateY(-2px); }
}

.assistant-option[aria-checked="false"]:active { background-color: rgba(255, 255, 255, 0.7); transform: scale(0.97); transition-duration: 0.08s; }
.assistant-option:focus-visible { outline: 2px solid var(--tint); outline-offset: -2px; }

body:not([data-boot="wait"]) .assistant-option { animation: paper-in 0.5s var(--ease-quint) calc(var(--i, 0) * 28ms) both; }

.assistant-method {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 0 0 0.5px var(--glass-hair), 0 1px 2px rgba(38, 42, 82, 0.06);
  color: color-mix(in srgb, var(--paper-tone) 70%, var(--ink));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.assistant-guide { padding: 24px 24px 22px; }
#assistant-guide-view, #assistant-done-view { display: grid; gap: 20px; }
#assistant-guide-view[hidden], #assistant-done-view[hidden] { display: none; }
.assistant-guide .paper-head { gap: 14px; }
.assistant-guide .paper-icon { width: 40px; height: 40px; border-radius: 13px; }
.assistant-guide .paper-icon .icon { width: 20px; height: 20px; }
.assistant-guide .paper-kind { gap: 3px; }
.assistant-guide .paper-kind strong { font-size: 17px; letter-spacing: -0.01em; white-space: normal; }

@media (max-width: 520px) {
  .assistant-guide { padding: 20px 18px 18px; }
  .assistant-guide .paper-head { grid-template-columns: auto minmax(0, 1fr); }
  .assistant-guide .paper-end { display: none; }
}
.assistant-guide .paper-kind small { font-size: 12.5px; }
.assistant-guide .paper-text { margin: 0 2px; max-width: 62ch; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.assistant-steps {
  display: grid;
  gap: 10px;
  margin: 0 -8px;
  padding: 0;
  list-style: none;
}

.assistant-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px 14px 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--ink-soft);
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.assistant-step + .assistant-step::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 24px;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: var(--ink-line);
}

.assistant-step[data-state="current"] {
  border-color: var(--glass-rim);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-dot);
  color: var(--ink);
}

.assistant-step[data-state="done"] { color: var(--ink); }
.assistant-step[data-state="next"] { color: var(--ink-soft); }

.assistant-step-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  counter-increment: assistant-step;
}

.assistant-step-mark::before {
  content: counter(assistant-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--glass-card);
  box-shadow: var(--shadow-dot);
  color: color-mix(in srgb, var(--paper-tone) 72%, var(--ink));
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.assistant-steps { counter-reset: assistant-step; }
.assistant-step-mark .orb { --orb-size: 22px; display: none; position: absolute; }
.assistant-step[data-state="current"] .assistant-step-mark::before { color: transparent; }
.assistant-step[data-state="current"] .assistant-step-mark .orb { display: inline-block; }
.assistant-step[data-state="done"] .assistant-step-mark::before {
  content: '';
  background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.4 5.2 4.3 7 7.6 3.3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.4 5.2 4.3 7 7.6 3.3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: none;
}

.assistant-step[data-state="done"] .assistant-step-mark { background: var(--glass-card); box-shadow: var(--shadow-dot); }

.assistant-step-body { display: grid; gap: 12px; min-width: 0; padding-top: 2px; font-size: 14.5px; line-height: 1.55; }
.assistant-step-body p { margin: 0; }
.assistant-step-body strong { font-weight: 500; color: var(--ink); }
.assistant-step[data-state="next"] .assistant-step-mark::before { color: var(--ink-faint); }

.assistant-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.assistant-copy {
  flex: 1 1 260px;
  min-height: 40px;
  padding-left: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.assistant-copy .copy-value { font-size: 12px; }
.assistant-copy[data-copied], .assistant-address[data-copied], .assistant-config[data-copied] { border-color: rgba(31, 122, 85, 0.5); box-shadow: 0 0 0 4px rgba(31, 122, 85, 0.1); }
.assistant-copy[data-copied] .button, .assistant-address[data-copied] .button, .assistant-config[data-copied] .button { --button-fg: var(--good); }

.assistant-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper-tone) 6%, rgba(255, 255, 255, 0.6));
  box-shadow: inset 0 0 0 0.5px var(--glass-hair);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.assistant-note strong { font-weight: 500; color: var(--ink); }
.assistant-also { margin: -6px 0 0; }

.assistant-config { flex-wrap: wrap; align-items: start; padding: 10px 6px 6px 12px; }
.assistant-config .copy-value { flex-basis: 100%; padding: 0 0 2px; font-size: 11.5px; white-space: pre; overflow-x: auto; word-break: normal; }
.assistant-config .button { margin-left: auto; }

.assistant-wait { margin-left: 4px; font-weight: 500; }

.console-section-title .assistant-wait { height: 24px; }

@keyframes connect-pop {
  from { transform: scale(0.72); }
}

@keyframes connect-ring {
  from { box-shadow: var(--shadow-dot), 0 0 0 0 rgba(242, 92, 168, 0.4); }
  to { box-shadow: var(--shadow-dot), 0 0 0 14px rgba(242, 92, 168, 0); }
}

@keyframes authorize-left {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.9);
  }
}

@keyframes authorize-right {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.9);
  }
}

@keyframes authorize-draw {
  from { transform: scaleX(0); }
}

@keyframes authorize-travel {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  18%, 82% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateX(var(--pair-link));
  }
}

@keyframes authorize-glow {
  40% { box-shadow: var(--shadow-chip), 0 0 0 7px rgba(255, 255, 255, 0.72), 0 0 38px rgba(242, 92, 168, 0.32); }
}

@media (prefers-reduced-motion: reduce) {
  body:not([data-boot="wait"]) .authorize-mark:first-child,
  body:not([data-boot="wait"]) .authorize-mark:last-child,
  body:not([data-boot="wait"]) .authorize-link,
  body:not([data-boot="wait"]) .authorize[data-state="done"] .authorize-mark,
  body:not([data-boot="wait"]) .assistant-option,
  .assistant-option[aria-checked="true"] .assistant-option-icon,
  body:not([data-boot="wait"]) .connect-list li,
  body:not([data-boot="wait"]) .connect-list li::before,
  .connect-list li,
  .connect-list li::before,
  body:not([data-boot="wait"]) .authorize-card .checklist-items > li,
  .connect-pair[data-state="live"] > span,
  .authorize:is([data-state="signin"], [data-state="fresh"], [data-state="ready"]) .authorize-dot {
    left: calc(50% - 3.5px);
    animation: none;
    opacity: 1;
  }
  .authorize-link::before,
  .authorize-check,
  .assistant-thumb,
  .assistant-option,
  .assistant-step,
  .assistant-copy { transition: none; }
  .assistant-option[aria-checked="false"]:active { transform: none; }
}

.privacy-list {
  margin-top: 14px;
  color: var(--ink-soft);
}

.developer-form { display: grid; gap: 0; margin-bottom: var(--container-gap); }

.developer-panel { display: grid; gap: 18px; }

.developer-form > .developer-panel:first-of-type { margin-top: 18px; }

.developer-heading { margin: 24px 0 0; }

.developer-heading + .developer-panel { margin-top: 10px; }

.developer-panel .field { color: var(--ink); }

.developer-panel .input { height: 44px; font-size: 15px; }

.developer-panel textarea.input {
    height: auto;
    min-height: 44px;
    padding: 11px 16px;
    line-height: 1.45;
    resize: vertical;
    field-sizing: content;
}

.developer-mono,
.developer-panel textarea.input { font: 400 14px/1.45 var(--font-code); }

.developer-select {
    appearance: none;
    padding-right: 42px;
    background: rgba(255, 255, 255, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23344761' d='M6.1 8.1a1.3 1.3 0 0 0-1.8 1.8l6.8 6.8a1.3 1.3 0 0 0 1.8 0l6.8-6.8a1.3 1.3 0 0 0-1.8-1.8L12 14Z'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
    cursor: pointer;
}

.developer-hint {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
}

.developer-hint code,
.developer-check-text code {
    font: 500 12px var(--font-code);
    color: var(--section-heading-ink);
}

.developer-scopes { display: grid; gap: 6px; }

.developer-scope,
.developer-check { gap: 16px; align-items: center; }

.developer-check-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.developer-check-text strong {
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.developer-check-text strong code { margin-left: 6px; font-weight: 400; }

.developer-check-text > span {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.developer-more { margin-top: 14px; }

.developer-more > summary { list-style: none; margin: 0; }

.developer-more > summary::-webkit-details-marker { display: none; }

.developer-more[open] > summary::before { transform: rotate(180deg); }

.developer-more > .developer-panel,
.developer-more > .developer-scopes { margin-top: 10px; }

.developer-panel > .developer-more { margin-top: 0; }

.developer-form > .tile-footer { margin-top: 24px; }

.developer-created { margin: var(--container-gap) 0; }

.developer-created .developer-panel { margin-top: 14px; }

.developer-created .field,
.account-group .tile-panel > .copy { color: var(--ink); }

.account-group .tile-panel > .copy { margin-bottom: 14px; }

.account-group [data-field="uris"] { overflow-wrap: anywhere; }

.copy-value { font-size: 13px; }

@media (max-width: 440px) {
    .developer-panel .fields { grid-template-columns: 1fr; }
}

.apps-page .console-section:first-of-type { margin-top: 0; }

.apps-page .console-head > .account-header { flex: 1 1 480px; min-width: 0; }
.apps-page .account-lede { max-width: 52ch; }


.apps-add-plus {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0 6px 0 -4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.console-section-title .console-tab-count { margin-left: 2px; }

.apps-caption {
  margin: 0 0 14px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.apps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  align-items: start;
}

.apps-list > .apps-empty { grid-column: 1 / -1; }

.apps-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
}

.apps-empty-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 15px;
  background: var(--mesh-icon-lilac);
  box-shadow: var(--modal-icon-raised-shadow);
  color: #FFFFFF;
}

.apps-empty-mark svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)); }
.apps-empty .tile-text { max-width: 38ch; }
.apps-empty .tile-actions { justify-content: center; margin-top: 8px; }

.apps-card { display: flex; flex-direction: column; gap: 20px; }

body:not([data-boot="wait"]) .apps-card { animation: apps-card-in 0.5s var(--ease-quint) both; }
body:not([data-boot="wait"]) .apps-card:nth-child(2) { animation-delay: 60ms; }
body:not([data-boot="wait"]) .apps-card:nth-child(3) { animation-delay: 120ms; }
body:not([data-boot="wait"]) .apps-card:nth-child(n + 4) { animation-delay: 180ms; }

@keyframes apps-card-in {
  from { opacity: 0; transform: translateY(12px); }
}

.apps-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.apps-card-badge > span { width: 48px; height: 48px; border-radius: 16px; font-size: 17px; }
.apps-card-badge .connect-known .icon,
.apps-card-badge .badge-logo img { width: 26px; height: 26px; object-fit: contain; }
.apps-card-title { min-width: 0; }
.apps-card-title .tile-tags { align-items: center; gap: 6px 10px; margin-top: 8px; }
.apps-card-kind { color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.apps-card-title .tag { max-width: 100%; height: auto; min-height: 28px; box-sizing: border-box; white-space: normal; }
.apps-card-actions { display: flex; align-self: start; gap: 6px; }
.apps-card-actions .button { padding-inline: 10px; }

.apps-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.apps-fact {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--glass-rim);
  border-radius: 16px;
  background: var(--glass-chip);
  box-shadow: var(--shadow-chip);
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.apps-fact-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--mesh-icon-sky);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(22, 26, 44, 0.14);
  color: #FFFFFF;
}

.apps-fact[data-tone="lilac"] .apps-fact-icon { background: var(--mesh-icon-lilac); }
.apps-fact[data-tone="coral"] .apps-fact-icon { background: var(--mesh-icon-coral); }
.apps-fact-icon .icon { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14)); }

.apps-fact-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.apps-fact-text > span { color: var(--ink-soft); font-size: 12px; }
.apps-fact-text strong { font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

.apps-fact-reading { transition: box-shadow 0.18s ease, transform 0.16s var(--ease-quint); }
.apps-fact-status { display: grid; place-items: center; width: 30px; height: 30px; }

@media (max-width: 420px) {
  .apps-fact { gap: 8px; padding: 10px; }
}

@media (max-width: 360px) {
  .apps-card-head { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .apps-card-actions { grid-column: 2; justify-self: start; }
  .apps-card-actions .button { margin-left: -10px; }
}

.apps-fact-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.apps-fact-reading[data-state="locked"] .apps-fact-dot { background: var(--tint); }
.apps-fact-reading[data-state="locked"] .apps-fact-text strong { color: var(--tint); }
.apps-fact-reading[data-state="open"] { background: linear-gradient(180deg, #F2FBF6, #E3F4EB); }
.apps-fact-reading[data-state="open"] .apps-fact-dot { background: var(--good); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(47, 167, 116, 0.6); animation: apps-breathe 2.4s ease-in-out infinite; }
.apps-fact-reading[data-state="open"] .apps-fact-text strong { color: var(--good); }
.apps-fact-reading[data-state="none"] { pointer-events: none; opacity: 0.7; }

@media (hover: hover) {
  .apps-fact-reading:not([data-state="none"]):hover { box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 0.5px var(--glass-hair), 0 3px 6px rgba(38, 42, 82, 0.08), 0 10px 18px -10px rgba(38, 42, 82, 0.3); transform: translateY(-1px); }
}

.apps-fact-reading:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }

@keyframes apps-breathe {
  50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 2px rgba(47, 167, 116, 0.2); }
}

.apps-card-panel { margin-top: 0; }

@media (min-width: 1000px) {
  .apps-list > .apps-card:only-child .apps-scopes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
}

.apps-card-confirm {
  padding: 14px 16px;
  border-radius: var(--radius-panel);
  background: rgba(221, 76, 76, 0.07);
  box-shadow: inset 0 0 0 1px rgba(221, 76, 76, 0.18);
  animation: apps-card-in 0.3s var(--ease-quint) both;
}

.apps-card-confirm[hidden] { display: none; }
.apps-card-confirm .tile-text { color: var(--ink); }

.apps-gate {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(150deg, #FBFAFF, #EEEAF8);
  transition: background 0.6s ease;
}

.apps-gate[data-state="open"] { background: linear-gradient(150deg, #F6FBF8, #E7F1EE); }
.apps-gate[data-state="none"], .apps-gate[data-state="blocked"] { background: linear-gradient(150deg, #FBFBFD, #F0F0F5); }
.apps-gate-section { padding: 24px 28px; }
.apps-gate-section + .apps-gate-section { border-top: 1px solid var(--ink-line); }
.apps-gate-how { background: rgba(255, 255, 255, 0.35); }
.apps-gate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.apps-gate-head .apps-caption { margin: 0; }
.apps-gate-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.apps-gate-text { margin: 8px 0 0; max-width: 64ch; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.apps-gate-readers .apps-gate-text { margin: 0; }
.apps-gate[data-state="checking"] .apps-gate-how, .apps-gate[data-state="checking"] .apps-gate-readers { visibility: hidden; }

.apps-gate-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps-gate-steps li { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; }

.apps-gate-steps li:not(:last-child)::before,
.apps-gate-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  right: -8px;
  left: 68px;
  height: 3px;
  border-radius: 2px;
  background: #D9D3EA;
}

.apps-gate-steps li:not(:last-child)::after { background: linear-gradient(90deg, #6FB7EE, #A47BE6); transform: scaleX(0); transform-origin: left; }
.apps-gate-steps li[data-step="2"]::after { background: linear-gradient(90deg, #A47BE6, #2FA774); }

.apps-gate-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mesh-icon-lilac);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px -8px rgba(75, 58, 154, 0.45);
  color: #FFFFFF;
  filter: saturate(0.25) brightness(1.08);
  opacity: 0.62;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.apps-gate-tile[data-step="1"] { background: var(--mesh-icon-sky); }
.apps-gate-tile[data-step="3"] { background: linear-gradient(160deg, #5BE38B, #13A452); }
.apps-gate-tile svg { width: 27px; height: 27px; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(22, 26, 44, 0.2)); }
.apps-gate-scan { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px #8F6FE6; opacity: 0; pointer-events: none; }
.apps-gate-step { display: grid; gap: 2px; opacity: 0.7; transition: opacity 0.3s ease; }
.apps-gate-step strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.apps-gate-step span { font-size: 12px; line-height: 1.45; color: var(--ink-soft); }

.apps-gate[data-state="locked"] .apps-gate-tile { animation: apps-gate-beat 7.5s ease-in-out infinite; }
.apps-gate[data-state="locked"] .apps-gate-step { animation: apps-gate-step 7.5s ease-in-out infinite; }
.apps-gate[data-state="locked"] li[data-step="2"] .apps-gate-tile, .apps-gate[data-state="locked"] li[data-step="2"] .apps-gate-step { animation-delay: 2.5s; }
.apps-gate[data-state="locked"] li[data-step="3"] .apps-gate-tile, .apps-gate[data-state="locked"] li[data-step="3"] .apps-gate-step { animation-delay: 5s; }
.apps-gate[data-state="locked"] li[data-step="1"]::after { animation: apps-gate-fill 7.5s ease-in-out infinite; }
.apps-gate[data-state="locked"] li[data-step="2"]::after { animation: apps-gate-fill 7.5s ease-in-out 2.5s infinite; }
.apps-gate[data-state="locked"] .apps-gate-scan { animation: apps-gate-scan 7.5s ease-out 2.5s infinite; }
.apps-gate[data-state="open"] .apps-gate-tile, .apps-gate[data-state="busy"] .apps-gate-tile[data-step="2"] { filter: none; opacity: 1; }
.apps-gate[data-state="open"] .apps-gate-step, .apps-gate[data-state="busy"] li[data-step="2"] .apps-gate-step { opacity: 1; }
.apps-gate[data-state="open"] li:not(:last-child)::after { transform: scaleX(1); }
.apps-gate[data-state="busy"] .apps-gate-tile[data-step="2"] { transform: scale(1.08); }
.apps-gate[data-state="busy"] .apps-gate-scan { animation: apps-gate-ping 1.5s ease-out infinite; }

@keyframes apps-gate-beat {
  0%, 2% { filter: saturate(0.25) brightness(1.08); opacity: 0.62; transform: scale(1); }
  8%, 30% { filter: none; opacity: 1; transform: scale(1.08); }
  36%, 100% { filter: saturate(0.25) brightness(1.08); opacity: 0.62; transform: scale(1); }
}

@keyframes apps-gate-step {
  0%, 2% { opacity: 0.7; }
  8%, 30% { opacity: 1; }
  36%, 100% { opacity: 0.7; }
}

@keyframes apps-gate-fill {
  0%, 28% { transform: scaleX(0); }
  36%, 96% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes apps-gate-scan {
  0%, 6% { opacity: 0; transform: scale(1); }
  10% { opacity: 1; }
  30% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; }
}

@keyframes apps-gate-ping {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.5); }
}

.apps-readers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.apps-reader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 0.5px var(--glass-hair), 0 1px 2px rgba(38, 42, 82, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.apps-reader[data-state="open"] { background: rgba(255, 255, 255, 0.86); box-shadow: 0 0 0 0.5px var(--glass-hair), 0 6px 18px -10px rgba(47, 167, 116, 0.45); }
.apps-reader[data-focus="true"] { animation: apps-reader-focus 2.4s ease-out both; }

@keyframes apps-reader-focus {
  0%, 20% { box-shadow: 0 0 0 2px var(--tint), 0 10px 28px -12px rgba(143, 111, 230, 0.6); }
  100% { box-shadow: 0 0 0 0.5px var(--glass-hair), 0 1px 2px rgba(38, 42, 82, 0.05); }
}

.apps-reader-ring { --ring-size: 46px; --ring-width: 3px; --ring-inset: 0; }
.apps-reader-ring .apps-reader-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 14px; font-weight: 600; background: var(--tint); color: var(--on-ink); }
.apps-reader-ring .apps-reader-mark.connect-known { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-dot); }
.apps-reader-ring .apps-reader-mark.connect-known[data-brand] { background: var(--brand-mesh); color: #FFFFFF; }
.apps-reader-ring .apps-reader-mark.badge-logo { overflow: hidden; background: #FFFFFF; }
.apps-reader-ring .apps-reader-mark img { width: 100%; height: 100%; object-fit: contain; }
.apps-reader-ring .apps-reader-mark .icon { width: 17px; height: 17px; }
.apps-reader[data-state="busy"] .apps-reader-ring { --ring-value: 25; --ring-start: var(--tint); --ring-end: var(--tint); animation: button-spin 0.9s linear infinite; }
.apps-reader[data-state="busy"] .apps-reader-ring .apps-reader-mark { animation: button-spin 0.9s linear infinite reverse; }
.apps-reader-text { margin: 0; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.apps-reader-text strong { display: block; font-weight: 600; color: var(--ink); }
.apps-reader[data-tone="error"] .apps-reader-text span { color: var(--bad); }
.apps-reader-left { color: var(--good); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.apps-reader-left:empty { display: none; }
.apps-reader .button { flex: none; }

@media (max-width: 760px) {
  .apps-gate-section { padding: 20px; }
  .apps-gate-steps { grid-template-columns: 1fr; gap: 22px; }
  .apps-gate-steps li { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .apps-gate-steps li:not(:last-child)::before, .apps-gate-steps li:not(:last-child)::after { top: 58px; right: auto; bottom: -24px; left: 24.5px; width: 3px; height: auto; transform-origin: top; }
  .apps-gate-steps li:not(:last-child)::after { transform: scaleY(0); }
  .apps-gate[data-state="open"] li:not(:last-child)::after { transform: scaleY(1); }
  .apps-gate[data-state="locked"] li[data-step="1"]::after, .apps-gate[data-state="locked"] li[data-step="2"]::after { animation-name: apps-gate-fill-down; }
  .apps-gate-tile { width: 52px; height: 52px; }
  .apps-reader { grid-template-columns: auto minmax(0, 1fr); }
  .apps-reader-left { grid-column: 2; }
  .apps-reader .button { grid-column: 1 / -1; width: 100%; }
}

@keyframes apps-gate-fill-down {
  0%, 28% { transform: scaleY(0); }
  36%, 96% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .apps-card, .apps-card-confirm, .apps-gate-tile, .apps-gate-step, .apps-gate-steps li::after, .apps-gate-scan, .apps-reader, .apps-reader-ring, .apps-reader-mark, .apps-fact-dot, .apps-fact-reading { animation: none !important; transition: none; }
}

.connect-list li[data-scope="read.availability"] {
  --list-tile: linear-gradient(160deg, #9BE3C8, #2F9E7A);
  --list-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 1 7 7c0 5.2-5.6 11.4-6.3 12.1a1 1 0 0 1-1.4 0C10.6 20.4 5 14.2 5 9a7 7 0 0 1 7-7Zm0 4.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E");
  --list-glow: rgba(47, 158, 122, 0.45);
}
