dialog.web-connect {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(43rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--hub-border,#aebdcc);
  border-radius: 12px;
  color: var(--hub-text,#1b344b);
  background: var(--hub-surface,#fff);
  box-shadow: 0 18px 55px #06162c52;
  font: inherit;
}
.web-connect::backdrop { background: rgb(7 17 31 / .65); }
.web-connect [hidden] { display: none !important; }
#webChangeClient { justify-self: start; }
.web-connect form { display: grid; gap: .9rem; padding: clamp(1rem,3vw,1.75rem); }
.web-connect header, .web-connect footer, .web-products { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.web-connect header { justify-content: space-between; }
.web-connect h2 { margin: 0; color: inherit; font-size: 1.35rem; }
.web-connect p, .web-connect fieldset { margin: 0; }
.web-connect p, .web-connect li { line-height: 1.55; }
.web-connect :is(fieldset,details) {
  padding: .65rem .85rem;
  border: 1px solid var(--hub-border,#c2cdd7);
  border-radius: 6px;
  min-width: 0;
}
.web-connect summary { cursor: pointer; font-weight: 650; }
.web-connect code { display: block; margin: .35rem 0; color: inherit; overflow-wrap: anywhere; user-select: all; font-size: .85rem; }
.web-connect ol, .web-connect ul { margin: .65rem 0 0; padding-inline-start: 1.3rem; }
.web-connect li+li { margin-block-start: .35rem; }
.web-connect a { color: var(--hub-accent,#125c9e); }
.web-connect .web-ids { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.web-ids label { display: grid; gap: .25rem; font-weight: 600; }
.web-ids input, .web-connect button {
  box-sizing: border-box;
  padding: .52rem .72rem;
  border-radius: 5px;
  border: 1px solid var(--hub-border,#afbfce);
  color: var(--hub-text,#1b344b);
  background: var(--hub-surface,#fff);
  font: inherit;
}
.web-ids input { width: 100%; min-width: 0; }
.web-connect button { cursor: pointer; }
.web-connect button:disabled { opacity: .65; cursor: wait; }
.web-products label, .web-connect .web-name-option { display: inline-flex; align-items: center; gap: .38rem; }
.web-products label { margin-inline-end: .5rem; }
.web-connect .web-name-option { margin-top: .65rem; }
.web-connect input[type=checkbox] { width: 1rem; height: 1rem; margin: 0; accent-color: var(--hub-accent,#2563b8); }
.web-connect :is(input,button,summary,a):focus-visible { outline: 3px solid var(--hub-accent,#2365ad); outline-offset: 2px; }
#webConnectStart { background: #1558a3; color: white; border-color: #1558a3; font-weight: 650; }
#webConnectStatus:empty { display: none; }
#webConnectStatus { color: var(--hub-text,#253e51); background: var(--hub-surface-alt,#edf3f8); border-radius: 5px; padding: .55rem .7rem; }
#webPermissionList { font: .86rem/1.5 Consolas,ui-monospace,monospace; overflow-wrap: anywhere; }
@media (max-width: 460px) {
  dialog.web-connect { width: calc(100vw - .8rem); max-height: calc(100dvh - .8rem); }
  .web-connect footer { align-items: stretch; }
  .web-connect footer button { flex: 1 1 9rem; }
}
