/* Novo One share dialog: one clean card hierarchy with aligned controls. */

html.library-novo1 .share-modal {
  width: min(820px, calc(100vw - 44px));
  box-shadow: none !important;
  filter: none !important;
}

html.library-novo1 .share-modal .share-card {
  width: 100%;
  max-width: 820px;
  max-height: min(88dvh, 780px);
  border: 1px solid var(--novo-line-strong);
  border-radius: 14px;
  box-shadow: none !important;
  filter: none !important;
}

html.library-novo1 .share-card > header {
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: #f8fbff;
  border-bottom: 1px solid var(--novo-line);
}

html.library-novo1 .share-card > header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

html.library-novo1 .share-card > header h2:focus {
  outline: 0;
}

html.library-novo1 .share-card > header .share-close-button {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 0;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid var(--novo-line-strong);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

html.library-novo1 .share-card > header .share-close-button .lc-icon {
  width: 19px;
  height: 19px;
}

html.library-novo1 .share-card-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
  background: #fff;
  scrollbar-gutter: stable;
}

html.library-novo1 .share-section,
html.library-novo1 .share-email-section {
  min-width: 0;
  margin: 0;
  padding: 20px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  background: #f8fbff;
  border: 1px solid var(--novo-line);
  border-radius: 12px;
  box-shadow: none;
  box-sizing: border-box;
}

html.library-novo1 .share-email-section {
  border-top: 1px solid var(--novo-line);
}

html.library-novo1 .share-section-icon {
  width: 28px;
  height: 28px;
  margin: -1px 0 0;
}

html.library-novo1 .share-section-content {
  min-width: 0;
}

html.library-novo1 .share-section-content h3 {
  font-size: 15px;
  line-height: 1.35;
}

html.library-novo1 .share-section-content > p {
  margin: 3px 0 14px;
}

html.library-novo1 .share-link-row {
  grid-template-columns: minmax(0, 1fr) 44px auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--novo-line-strong);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

html.library-novo1 .share-card .share-link-row input {
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.library-novo1 .share-link-row .share-open-button,
html.library-novo1 .share-link-row .share-copy-button {
  min-height: 44px;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--novo-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

html.library-novo1 .share-link-row .share-open-button {
  width: 44px;
}

html.library-novo1 .share-link-row .share-copy-button {
  min-width: 112px;
}

html.library-novo1 .share-link-row .share-open-button:hover:not(:disabled),
html.library-novo1 .share-link-row .share-copy-button:hover:not(:disabled) {
  background: var(--novo-blue-soft);
}

html.library-novo1 .share-status {
  min-height: 17px;
  margin: 7px 0 0 !important;
}

html.library-novo1 .share-collection-options {
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

html.library-novo1 .share-card .share-field {
  min-width: 0;
}

html.library-novo1 .share-card .share-field input,
html.library-novo1 .share-card .share-field textarea {
  box-sizing: border-box;
}

html.library-novo1 .share-toggle-row {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--novo-line);
  border-radius: 9px;
  box-shadow: none;
  box-sizing: border-box;
}

html.library-novo1 .share-name-toggle {
  margin-top: 12px;
}

html.library-novo1 .share-owner-name-field {
  margin: 10px 0 0 63px !important;
}

html.library-novo1 .share-email-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

html.library-novo1 .share-email-actions .share-toggle-row.compact {
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
}

html.library-novo1 .share-message-toggle {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  color: var(--novo-blue-strong);
  background: #fff;
  border: 1px solid var(--novo-line);
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

html.library-novo1 .share-message-toggle:hover {
  background: var(--novo-blue-soft);
  border-color: #a8caf8;
  text-decoration: none;
}

html.library-novo1 .share-message-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 2px;
}

html.library-novo1 .share-message-fields.hidden {
  display: none;
}

html.library-novo1 .share-card > footer {
  min-height: 64px;
  padding: 11px 20px;
  background: #f8fbff;
  border-top: 1px solid var(--novo-line);
}

@media (max-width: 700px) {
  html.library-novo1 .share-modal {
    width: calc(100vw - 16px);
  }

  html.library-novo1 .share-card > header,
  html.library-novo1 .share-card > footer,
  html.library-novo1 .share-card-body {
    padding-inline: 14px;
  }

  html.library-novo1 .share-section,
  html.library-novo1 .share-email-section {
    padding: 16px 14px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  html.library-novo1 .share-link-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  html.library-novo1 .share-link-row .share-copy-button {
    grid-column: 1 / -1;
    min-height: 42px;
    border-top: 1px solid var(--novo-line);
    border-left: 0;
  }

  html.library-novo1 .share-email-actions {
    grid-template-columns: 1fr;
  }

  html.library-novo1 .share-message-toggle {
    width: max-content;
  }

  html.library-novo1 .share-owner-name-field {
    margin-left: 0 !important;
  }
}
