.school-share-dialog {
  --share-ink: #0b3d5c;
  --share-muted: #47738d;
  --share-line: #dceaf5;
  --share-radius: 14px;
  --share-gap: 10px;
  --share-btn-height: 48px;
  --share-icon: 20px;
  --share-inset: 16px;
  --share-close-size: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: fixed;
  inset: auto;
  top: var(--school-share-viewport-top, 0px);
  left: var(--school-share-viewport-left, 0px);
  width: var(--school-share-viewport-width, 100vw);
  height: var(--school-share-viewport-height, 100dvh);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--share-inset);
  border: 0;
  background: transparent;
  color: var(--share-ink);
  font-family: Gilroy, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  overflow: auto;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.school-share-dialog:not([open]) {
  display: none;
}
.school-share-dialog::-webkit-backdrop {
  background: rgba(8, 33, 52, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.school-share-dialog::backdrop {
  background: rgba(8, 33, 52, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.school-share-dialog *, .school-share-dialog *::before, .school-share-dialog *::after {
  box-sizing: border-box;
}
.school-share-dialog__panel {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(520px, 100%);
  margin: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(5, 40, 66, 0.28), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}
.school-share-dialog__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 20px 14px;
  background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 55%, #fff 100%);
  border-bottom: 1px solid var(--share-line);
}
.school-share-dialog__header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #25a8ff 0%, #6468ff 54%, #8f4dff 100%);
}
.school-share-dialog__heading {
  flex: 1;
  min-width: 0;
}
.school-share-dialog__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #62a82d;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.school-share-dialog h2 {
  margin: 0;
  padding: 0;
  font-size: 1.35em;
  line-height: 1.2;
  font-weight: 800;
  color: var(--share-ink);
}
.school-share-dialog button.school-share-dialog__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--share-close-size) !important;
  min-width: var(--share-close-size) !important;
  max-width: var(--share-close-size) !important;
  height: var(--share-close-size) !important;
  min-height: var(--share-close-size) !important;
  max-height: var(--share-close-size) !important;
  aspect-ratio: 1;
  align-self: flex-start;
  padding: 0;
  border: 1px solid var(--share-line);
  border-radius: 50%;
  background: #fff;
  color: var(--share-muted);
  box-shadow: 0 2px 6px rgba(11, 61, 92, 0.08);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.school-share-dialog button.school-share-dialog__close svg {
  width: 55%;
  height: 55%;
}
.school-share-dialog button.school-share-dialog__close:hover {
  background: #f1f7fd;
  color: var(--share-ink);
  transform: rotate(90deg);
}
.school-share-dialog__content {
  padding: 16px 20px 18px;
}
.school-share-dialog a, .school-share-dialog button, .school-share-dialog select, .school-share-dialog summary, .school-share-dialog label {
  font: inherit;
  cursor: pointer;
}
.school-share-dialog__preview {
  margin: 0;
  padding: 0;
  border-radius: var(--share-radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(11, 61, 92, 0.22);
}
.school-share-dialog [data-card-preview] {
  display: block;
  width: 100%;
  height: auto;
  background: #eef4fb;
}
.school-share-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: var(--share-btn-height);
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #f2f7fc;
  color: var(--share-ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.school-share-dialog__btn > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.school-share-dialog__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.school-share-dialog__btn:active {
  transform: translateY(0) scale(0.98);
}
.school-share-dialog__btn--facebook {
  color: #fff !important;
  background: linear-gradient(135deg, #1e8cf5, #1559d6);
  box-shadow: 0 6px 14px rgba(21, 89, 214, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.school-share-dialog__btn--whatsapp {
  color: #fff !important;
  background: linear-gradient(135deg, #3ad96f, #17b256);
  box-shadow: 0 6px 14px rgba(23, 178, 86, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.school-share-dialog__btn--telegram {
  color: #fff !important;
  background: linear-gradient(135deg, #38b6e8, #1b8fc6);
  box-shadow: 0 6px 14px rgba(27, 143, 198, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.school-share-dialog__btn--copy {
  color: #fff !important;
  background: linear-gradient(135deg, #25a8ff 0%, #6468ff 54%, #8f4dff 100%);
  box-shadow: 0 6px 14px rgba(83, 83, 232, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.school-share-dialog__btn--save {
  background: linear-gradient(135deg, #ffc247, #f3960a);
  color: #4a2e00 !important;
  box-shadow: 0 6px 14px rgba(224, 141, 6, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.school-share-dialog__btn--ghost {
  background: #fff;
  border: 1px solid var(--share-line);
  color: #256a90 !important;
  box-shadow: 0 2px 6px rgba(11, 61, 92, 0.06);
}
.school-share-dialog__btn--ghost:hover {
  background: #f4faff;
}
.school-share-dialog__icon {
  display: block;
  flex: 0 0 var(--share-icon);
  width: var(--share-icon);
  height: var(--share-icon);
}
.school-share-dialog__icon.school-share-dialog__check {
  display: none;
}
.school-share-dialog__btn.is-copied {
  background: linear-gradient(135deg, #34c76f, #12a355) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(18, 163, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.school-share-dialog__btn.is-copied .school-share-dialog__copy-icon {
  display: none;
}
.school-share-dialog__btn.is-copied .school-share-dialog__icon.school-share-dialog__check {
  display: block;
}
.school-share-dialog__social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--share-gap);
  margin-top: 16px;
}
.school-share-dialog__tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--share-gap);
  margin-top: var(--share-gap);
}
.school-share-dialog__tools > [hidden] + a {
  grid-column: 1/-1;
}
.school-share-dialog__caption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--share-line);
}
.school-share-dialog__caption > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6fafe;
  color: #256a90;
  font-weight: 700;
  list-style: none;
}
.school-share-dialog__caption > summary::-webkit-details-marker {
  display: none;
}
.school-share-dialog__caption > summary:hover {
  background: #eef5fc;
}
.school-share-dialog__caption > summary > span {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.school-share-dialog__caption[open] > summary .school-share-dialog__chevron {
  transform: rotate(180deg);
}
.school-share-dialog__caption .school-share-dialog__btn {
  width: 100%;
}
.school-share-dialog__chevron {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.school-share-dialog textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--share-line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: #fbfdff;
  color: var(--share-ink);
  font: inherit;
  line-height: 1.4;
}
.school-share-dialog__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
}
.school-share-dialog__status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef8e6;
  font-size: 0.88em;
  font-weight: 700;
  color: #316523;
  text-align: center;
}
.school-share-dialog__status:empty {
  display: none;
}
.school-share-dialog span:not([class]) {
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  letter-spacing: normal !important;
}
.school-share-dialog [aria-disabled=true] {
  opacity: 0.65;
  cursor: progress;
}
.school-share-dialog [hidden] {
  display: none !important;
}
.school-share-dialog a:focus-visible, .school-share-dialog button:focus-visible, .school-share-dialog summary:focus-visible, .school-share-dialog textarea:focus-visible {
  outline: 3px solid #62a82d;
  outline-offset: 2px;
}
.school-share-dialog--tablet .school-share-dialog__panel, .school-share-dialog--phone .school-share-dialog__panel {
  margin: 0 auto;
}
.school-share-dialog--tablet {
  --share-btn-height: 54px;
  --share-icon: 22px;
  --share-close-size: 52px;
}
.school-share-dialog--tablet .school-share-dialog__caption > summary {
  min-height: 54px;
}
.school-share-dialog--phone {
  --share-btn-height: 108px;
  --share-icon: 42px;
  --share-radius: 22px;
  --share-gap: 14px;
  --share-inset: 20px;
  font-size: 32px;
  --share-close-size: 124px;
}
.school-share-dialog--phone .school-share-dialog__panel {
  width: 100%;
  border-radius: 34px;
}
.school-share-dialog--phone .school-share-dialog__header {
  padding: 22px 26px 18px;
}
.school-share-dialog--phone .school-share-dialog__content {
  padding: 22px 26px 24px;
}
.school-share-dialog--phone [data-card-preview] {
  max-height: 460px;
}
.school-share-dialog--phone button, .school-share-dialog--phone select, .school-share-dialog--phone summary, .school-share-dialog--phone textarea {
  height: auto !important;
  max-height: none !important;
  font-size: inherit !important;
  line-height: 1.2 !important;
}
.school-share-dialog--phone .school-share-dialog__caption > summary {
  min-height: var(--share-btn-height);
  padding: 16px 22px;
}
.school-share-dialog--phone .school-share-dialog__chevron {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}
.school-share-dialog--phone .school-share-dialog__btn {
  border-radius: 20px;
  padding: 14px 20px;
  gap: 14px;
}
.school-share-dialog--phone textarea {
  border-radius: 20px;
  padding: 18px;
}
@media (orientation: landscape) {
  .school-share-dialog--phone {
    --share-btn-height: 56px;
    --share-icon: 24px;
    --share-inset: 12px;
    font-size: 21px;
    --share-close-size: 52px;
  }
  .school-share-dialog--phone .school-share-dialog__btn {
    border-radius: 14px;
    padding: 10px 16px;
    gap: 10px;
  }
  .school-share-dialog--phone .school-share-dialog__chevron {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
  .school-share-dialog--phone [data-card-preview] {
    max-height: 200px;
  }
}
