.acl-share-selection-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  border-top: 1px solid var(--md-surface-4, #e6e7eb);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 24px rgba(30, 32, 40, .07);
  backdrop-filter: blur(16px);
}
.acl-share-selection-bar[hidden] { display: none; }
.acl-share-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--md-on-surface, #34373d);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.acl-share-select-all input,
.acl-share-turn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.acl-share-select-all strong { font-size: 13px; }
.acl-share-select-all > span:last-child {
  color: var(--text-muted, #8a8e97);
  font-size: 12px;
  font-weight: 400;
}
.acl-share-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #c9ccd3;
  border-radius: 5px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.acl-share-check .material-symbols-outlined {
  color: transparent;
  font-size: 14px;
  font-weight: 700;
}
.acl-share-select-all input:checked + .acl-share-check,
.acl-share-select-all input:indeterminate + .acl-share-check,
.acl-share-turn input:checked + .acl-share-check {
  border-color: #5d6169;
  background: #5d6169;
}
.acl-share-select-all input:checked + .acl-share-check .material-symbols-outlined,
.acl-share-turn input:checked + .acl-share-check .material-symbols-outlined {
  color: #fff;
}
.acl-share-select-all input:indeterminate + .acl-share-check .material-symbols-outlined {
  color: transparent;
}
.acl-share-select-all input:indeterminate + .acl-share-check::after {
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
}
.acl-share-selection-actions { display: flex; gap: 8px; }
.acl-share-selection-actions button,
.acl-share-create {
  border: 0;
  border-radius: 9px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.acl-share-cancel { background: transparent; color: #50545d; }
.acl-share-cancel:hover { background: #f0f1f3; }
.acl-share-next,
.acl-share-create { background: #25272d; color: #fff; }
.acl-share-next:disabled,
.acl-share-create:disabled { opacity: .4; cursor: not-allowed; }

.acl-share-selecting { padding-left: 52px; padding-bottom: 76px; }
.acl-share-selecting .acl-msg {
  transition: opacity .16s ease, filter .16s ease;
}
.acl-share-selecting .acl-msg:not(.acl-share-turn-selected) { opacity: .6; }
.acl-share-selecting .acl-msg:hover,
.acl-share-selecting .acl-msg.acl-share-turn-selected { opacity: 1; }
.acl-share-selecting .acl-msg.acl-share-turn-selected .acl-bubble {
  box-shadow: 0 0 0 2px rgba(93, 97, 105, .25);
}
.acl-share-turn {
  position: absolute;
  left: 19px;
  z-index: 5;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.acl-share-turn .acl-share-check {
  width: 18px;
  height: 18px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}

.acl-share-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 21, 25, .42);
  backdrop-filter: blur(5px);
}
.acl-share-dialog-backdrop[hidden] { display: none; }
.acl-share-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(20, 21, 38, .25);
}
.acl-share-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #f4f5f7;
  color: #646974;
  cursor: pointer;
}
.acl-share-dialog-close .material-symbols-outlined { font-size: 19px; }
.acl-share-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eeecff;
  color: #6756e8;
}
.acl-share-dialog-icon .material-symbols-outlined { font-size: 22px; }
.acl-share-dialog h2 { margin: 17px 0 8px; font-size: 21px; }
.acl-share-dialog > p {
  margin: 0 0 22px;
  color: #727781;
  font-size: 13px;
  line-height: 1.65;
}
.acl-share-dialog label {
  display: block;
  margin: 0 0 15px;
  color: #34373d;
  font-size: 13px;
  font-weight: 600;
}
.acl-share-dialog input,
.acl-share-dialog select {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #dfe1e6;
  border-radius: 10px;
  background: #fff;
  color: #25272c;
  font: inherit;
  outline: none;
}
.acl-share-dialog input:focus,
.acl-share-dialog select:focus {
  border-color: #8072e9;
  box-shadow: 0 0 0 3px rgba(103, 86, 232, .10);
}
.acl-share-create { width: 100%; height: 44px; margin-top: 5px; }
.acl-share-result[hidden],
#acl-share-form[hidden],
#acl-share-dialog-description[hidden] { display: none; }
.acl-share-result > label {
  display: block;
  margin-bottom: 8px;
  color: #34373d;
  font-size: 13px;
  font-weight: 600;
}
.acl-share-link-row { display: flex; gap: 8px; }
.acl-share-link-row input {
  min-width: 0;
  margin: 0;
  color: #50545d;
  font-size: 12px;
}
.acl-share-link-row button,
.acl-share-done {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: #25272d;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.acl-share-link-row button .material-symbols-outlined { font-size: 17px; }
.acl-share-result > p {
  margin: 12px 0 18px;
  color: #727781;
  font-size: 12px;
  line-height: 1.55;
}
.acl-share-done { width: 100%; }
.acl-topic-share { color: #6756e8 !important; }

@media (max-width: 680px) {
  .acl-share-selection-bar { padding: 9px 14px; }
  .acl-share-selecting { padding-left: 42px; }
  .acl-share-turn { left: 12px; }
  .acl-share-selection-actions button { padding: 8px 12px; }
}
