.mydrop-link-public-body {
  --mydrop-link-default-bg: var(--bg-black-2);
  --mydrop-link-default-text: var(--font-black);
  --mydrop-link-default-button-bg: var(--bg-white);
  --mydrop-link-default-button-text: var(--font-black);
  --mydrop-link-glass-bg: color-mix(in srgb, var(--bg-white) 12%, transparent);
  --mydrop-link-glass-bg-hover: color-mix(in srgb, var(--bg-white) 22%, transparent);
  --mydrop-link-glass-border: color-mix(in srgb, var(--bg-white) 20%, transparent);
  --mydrop-link-glass-border-strong: color-mix(in srgb, var(--bg-white) 30%, transparent);
  --mydrop-link-shadow: var(--shadow-card);
  --mydrop-link-shadow-hover: var(--shadow-hover);
  --mydrop-link-overlay: var(--overlay-blur);
  --mydrop-link-danger-bg: color-mix(in srgb, var(--error) 16%, var(--surface));
  --mydrop-link-danger-text: var(--error);
  --mydrop-link-spinner: var(--font-black);
}

.mydrop-link-public-body {
  margin: 0;
  min-height: 100vh;
  background: var(--mydrop-link-default-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#mydrop-link-public-root {
  display: flex;
  min-height: 100vh;
}

.mydrop-link-page {
  min-height: 100%;
  flex: 1;
  width: 100%;
  color: var(--mydrop-link-text);
  background: var(--mydrop-link-bg, var(--mydrop-link-default-bg));
  font-family: var(--mydrop-link-font);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 18px;
  box-sizing: border-box;
}

.mydrop-link-shell {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.mydrop-link-layout-card .mydrop-link-shell {
  padding: 22px;
  border-radius: 30px;
  background: var(--mydrop-link-glass-bg);
  border: 1px solid var(--mydrop-link-glass-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.mydrop-link-layout-split .mydrop-link-shell {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.mydrop-link-theme-minimal .mydrop-link-button,
.mydrop-link-theme-minimal .mydrop-link-social,
.mydrop-link-theme-minimal .mydrop-link-text-block,
.mydrop-link-theme-minimal .mydrop-link-html-block {
  box-shadow: none;
  border-radius: 999px;
}

.mydrop-link-theme-bold .mydrop-link-profile h1 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.mydrop-link-cover-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--mydrop-link-shadow);
}

.mydrop-link-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.mydrop-link-profile-image,
.mydrop-link-profile-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: var(--mydrop-link-shadow);
  border: 2px solid var(--mydrop-link-glass-border-strong);
}

.mydrop-link-profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mydrop-link-glass-bg);
  color: currentColor;
  font-size: 42px;
  font-weight: 800;
}

.mydrop-link-profile h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.mydrop-link-profile p {
  max-width: 440px;
  margin: 0;
  opacity: 0.82;
  font-size: 15px;
  line-height: 1.55;
}

.mydrop-link-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mydrop-link-social {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  background: var(--mydrop-link-glass-bg);
  border: 1px solid var(--mydrop-link-glass-border);
  transition: transform 160ms ease, background-color 160ms ease;
}

.mydrop-link-social:hover {
  transform: translateY(-2px);
  background: var(--mydrop-link-glass-bg-hover);
}

.mydrop-link-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mydrop-link-social span {
  font-size: 13px;
  font-weight: 700;
}

.mydrop-link-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mydrop-link-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: var(--mydrop-link-button-radius, 18px);
  color: var(--mydrop-link-button-text);
  background: var(--mydrop-link-button-bg);
  text-decoration: none;
  font-weight: 750;
  box-sizing: border-box;
  box-shadow: var(--mydrop-link-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.mydrop-link-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--mydrop-link-shadow-hover);
}

.mydrop-link-button small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
}

.mydrop-link-button-style-outline .mydrop-link-button {
  color: var(--mydrop-link-button-text);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--mydrop-link-button-bg) 70%, transparent);
  box-shadow: none;
}

.mydrop-link-button-style-soft .mydrop-link-button {
  color: var(--mydrop-link-button-text);
  background: color-mix(in srgb, var(--mydrop-link-button-bg) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--mydrop-link-button-bg) 28%, transparent);
  box-shadow: none;
}

.mydrop-link-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mydrop-link-text-block,
.mydrop-link-html-block {
  padding: 16px;
  border-radius: 18px;
  background: var(--mydrop-link-glass-bg);
  border: 1px solid var(--mydrop-link-glass-border);
  line-height: 1.55;
}

.mydrop-link-text-block,
.mydrop-link-profile p,
.mydrop-link-card-copy small,
.mydrop-link-button-card small,
.mydrop-link-button small,
.mydrop-link-email-capture p,
.mydrop-link-media-kit-header small,
.mydrop-link-media-kit dd,
.mydrop-link-feed-post-copy p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mydrop-link-block-image,
.mydrop-link-card-image,
.mydrop-link-media-item,
.mydrop-link-feed-media img,
.mydrop-link-feed-profile img,
.mydrop-link-media-kit-header img {
  background: color-mix(in srgb, var(--bg-white) 8%, transparent);
  position: relative;
  overflow: hidden;
}

.mydrop-link-block-image:not([src]),
.mydrop-link-card-image:not([src]),
.mydrop-link-media-item:not([src]),
.mydrop-link-feed-media img:not([src]),
.mydrop-link-feed-profile img:not([src]),
.mydrop-link-media-kit-header img:not([src]),
.mydrop-link-shimmer {
  min-height: 40px;
}

.mydrop-link-block-image::before,
.mydrop-link-card-image::before,
.mydrop-link-media-item::before,
.mydrop-link-feed-media img::before,
.mydrop-link-feed-profile img::before,
.mydrop-link-media-kit-header img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--bg-white) 5%, transparent) 50%,
    transparent 100%
  );
  animation: mydrop-link-shimmer 1.5s infinite linear;
  z-index: 1;
}

.mydrop-link-block-image[src]::before,
.mydrop-link-card-image[src]::before,
.mydrop-link-media-item[src]::before,
.mydrop-link-feed-media img[src]::before,
.mydrop-link-feed-profile img[src]::before,
.mydrop-link-media-kit-header img[src]::before {
  display: none;
}

@keyframes mydrop-link-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.mydrop-link-text-block{
    background: transparent;
    border: none;
}
.mydrop-link-block-image {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.mydrop-link-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, auto);
  gap: 12px;
}

.mydrop-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--mydrop-link-button-radius, 18px);
  color: currentColor;
  text-decoration: none;
  background: var(--mydrop-link-glass-bg);
  border: 1px solid var(--mydrop-link-glass-border);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.mydrop-link-card-size-small {
  min-height: 104px;
  padding: 14px;
}

.mydrop-link-card-size-medium {
  min-height: 148px;
}

.mydrop-link-card-size-large {
  min-height: 220px;
  grid-column: 1 / -1;
}

.mydrop-link-bento-grid .mydrop-link-card-size-large {
  grid-row: span 2;
  min-height: 232px;
}

.mydrop-link-card-size-wide {
  grid-column: 1 / -1;
  min-height: 280px;
}

.mydrop-link-card-open-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mydrop-link-glass-bg);
}

.mydrop-link-card-open-icon svg {
  width: 17px;
  height: 17px;
}

.mydrop-link-social-card {
  align-items: center;
  justify-content: center;
}

.mydrop-link-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mydrop-link-glass-bg);
  font-size: 18px;
}

.mydrop-link-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mydrop-link-card-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.mydrop-link-card-copy small,
.mydrop-link-file-meta,
.mydrop-link-media-kit dd,
.mydrop-link-media-kit small,
.mydrop-link-feed-profile small {
  opacity: 0.76;
  font-size: 12px;
  line-height: 1.45;
}

.mydrop-link-card-image,
.mydrop-link-card-video {
  width: 100%;
  min-height: 180px;
  max-height: 260px;
  border-radius: calc(var(--mydrop-link-button-radius, 18px) - 6px);
  object-fit: cover;
  border: 0;
}

.mydrop-link-download-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--mydrop-link-button-radius, 18px);
  background: var(--mydrop-link-button-bg, currentColor);
  color: var(--mydrop-link-button-text, var(--mydrop-link-default-button-text));
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.mydrop-link-download-card em svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mydrop-link-media-items,
.mydrop-link-feed-posts {
  display: grid;
  gap: 8px;
}

.mydrop-link-media-carousel,
.mydrop-link-feed-carousel .mydrop-link-feed-posts {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.mydrop-link-media-grid {
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--mydrop-link-media-rows, 2), minmax(110px, auto));
  grid-auto-columns: minmax(46%, 1fr);
  overflow-x: auto;
}

.mydrop-link-media-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  scroll-snap-align: start;
}

.mydrop-link-media-carousel .mydrop-link-media-item,
.mydrop-link-feed-carousel .mydrop-link-feed-post {
  min-width: 72%;
}

.mydrop-link-email-capture {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mydrop-link-email-capture strong {
  font-size: 16px;
}

.mydrop-link-email-capture p {
  margin: 0;
  opacity: 0.78;
  font-size: 13px;
  line-height: 1.45;
}

.mydrop-link-email-capture input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mydrop-link-glass-border);
  border-radius: var(--mydrop-link-button-radius, 18px);
  background: var(--mydrop-link-glass-bg);
  color: currentColor;
  padding: 0 12px;
  box-sizing: border-box;
  font: inherit;
}

.mydrop-link-email-capture input::placeholder {
  color: color-mix(in srgb, currentColor 60%, transparent);
}

.mydrop-link-email-capture button {
  min-height: 42px;
  border: none;
  border-radius: var(--mydrop-link-button-radius, 18px);
  background: var(--mydrop-link-button-bg);
  color: var(--mydrop-link-button-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mydrop-link-email-capture button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mydrop-link-email-capture button.is-loading {
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mydrop-link-button-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mydrop-link-button-spin 0.7s linear infinite;
}

@keyframes mydrop-link-button-spin {
  to { transform: rotate(360deg); }
}

.mydrop-link-email-status {
  min-height: 16px;
  font-size: 12px;
  opacity: 0.78;
}

.mydrop-link-contact-card {
  gap: 14px;
  justify-content: center;
  background: var(--mydrop-link-glass-bg-hover);
}

.mydrop-link-contact-title {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  color: currentColor;
}

.mydrop-link-contact-list {
  display: grid;
  gap: 8px;
}

.mydrop-link-contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border-radius: calc(var(--mydrop-link-button-radius, 18px) - 6px);
  background: var(--mydrop-link-glass-bg);
  color: currentColor;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mydrop-link-contact-label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.mydrop-link-contact-value {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.mydrop-link-feed-profile,
.mydrop-link-media-kit-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mydrop-link-social-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mydrop-link-feed-profile img,
.mydrop-link-media-kit-header img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.mydrop-link-feed-profile span,
.mydrop-link-media-kit-header span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mydrop-link-feed-grid .mydrop-link-feed-posts {
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--mydrop-link-feed-rows, 2), minmax(0, auto));
  grid-auto-columns: minmax(46%, 1fr);
  overflow-x: auto;
}

.mydrop-link-feed-post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: currentColor;
  text-decoration: none;
  min-width: 0;
  min-height: 208px;
  padding: 10px;
  border-radius: calc(var(--mydrop-link-button-radius, 18px) - 4px);
  background: var(--mydrop-link-glass-bg);
  border: 1px solid var(--mydrop-link-glass-border);
  box-sizing: border-box;
}

.mydrop-link-feed-media {
  min-height: 116px;
  display: flex;
}

.mydrop-link-feed-post img,
.mydrop-link-feed-post video {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.mydrop-link-feed-post p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.8;
}

.mydrop-link-feed-post-copy {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mydrop-link-feed-post-copy a {
  align-self: flex-start;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mydrop-link-media-kit {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mydrop-link-media-kit dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.mydrop-link-media-kit dt {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.64;
}

.mydrop-link-media-kit dd {
  margin: 2px 0 0;
}

.mydrop-link-media-kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mydrop-link-media-kit-actions a {
  color: currentColor;
  font-weight: 800;
}

.mydrop-link-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--mydrop-link-glass-border-strong);
}

.mydrop-link-powered {
  align-self: center;
  color: currentColor;
  text-decoration: none;
  opacity: 0.62;
  font-size: 12px;
}

.mydrop-link-animation-fade .mydrop-link-shell {
  animation: mydropLinkFade 420ms ease both;
}

.mydrop-link-animation-rise .mydrop-link-shell {
  animation: mydropLinkRise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mydropLinkFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mydropLinkRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.mydrop-link-editor-modal {
    position: absolute;
    inset: 0;
    z-index: 39;
    display: none;
    background: var(--mydrop-link-overlay);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
}

.mydrop-link-editor-modal.open {
  display: flex;
  animation: mydrop-link-editor-backdrop-in 180ms ease-out forwards;
}

.mydrop-link-editor-modal.closing {
  display: flex;
  pointer-events: none;
  animation: mydrop-link-editor-backdrop-out 220ms ease-in forwards;
}

.mydrop-link-editor {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--bg-blue-clear);
    color: var(--font-black);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    height: calc(100% - 20px);
    transform: translateY(24px);
    opacity: 0;
    animation: mydrop-link-editor-panel-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mydrop-link-editor-modal.closing .mydrop-link-editor {
  animation: mydrop-link-editor-panel-out 200ms ease-in forwards;
}

@keyframes mydrop-link-editor-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mydrop-link-editor-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes mydrop-link-editor-panel-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mydrop-link-editor-panel-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(24px); }
}

.mydrop-link-editor-header {
  display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-blue-clear);
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 11px;
    padding-left: 20px;
    box-sizing: border-box;
}
.mydrop-link-editor-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-small);
}
.mydrop-link-editor-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mydrop-link-editor-title h2 {
  margin: 0;
  color: var(--font-black);
  font-size: 18px;
  font-weight: 700;
}

.mydrop-link-slug-status,
.mydrop-link-editor-section p {
  margin: 0;
  color: var(--font-gray);
  font-size: 12px;
}

.mydrop-link-editor-close {
    color: var(--font-gray);
    width: var(--height-small);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--surface);
  cursor: pointer;
}

.mydrop-link-editor-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1.05fr);
  gap: 0;
}

.mydrop-link-editor-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    padding-bottom: 150px;
    margin-top: 18px;
    padding-top: 0;
    box-sizing: border-box;
    gap: var(--gap-big);
}

.mydrop-link-editor-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
  box-sizing: border-box;
}

.mydrop-link-editor-tab {
  flex: 1;
  min-height: 34px;
  border: none;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--font-gray);
  font-weight: 700;
  cursor: pointer;
}

.mydrop-link-editor-tab.active {
  background: var(--purple-dark);
  color: var(--bg-white);
}

.mydrop-link-editor-panel {
  display: none;
  width: 100%;
}

.mydrop-link-editor-panel.active {
  display: block;
}

.mydrop-link-editor-preview {
  min-height: 0;
  display: flex;
  flex-direction: column;
    overflow-x: auto;
}

.mydrop-link-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.mydrop-link-preview-header h3 {
  margin: 0;
  color: var(--font-black);
  font-size: 13px;
}

.mydrop-link-preview-header p {
  margin: 3px 0 0;
  color: var(--font-gray);
  font-size: 12px;
}

#mydrop-link-preview-devices {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-big);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
}

#mydrop-link-preview-devices .post-preview-selector {
  min-width: 96px;
  border: none;
  background: transparent;
  box-shadow: none;
}

#mydrop-link-preview-devices .post-preview-selector.active {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--purple-dark) 36%, var(--border-color));
  box-shadow: var(--shadow-sm);
}

#mydrop-link-editor-preview-root {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.mydrop-link-preview-stage-shell {
  --post-preview-laptop-width: 1280px;
  --post-preview-laptop-height: 720px;
  --post-preview-phone-width: 390px;
  --post-preview-phone-height: 812px;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}

.mydrop-link-preview-stage-shell #post-preview-canvas {
  min-height: 100%;
}

.mydrop-link-preview-stage-shell .post-preview-stage {
  padding: 18px;
}

.mydrop-link-preview-stage-shell .post-preview-browser-body,
.mydrop-link-preview-stage-shell .post-preview-phone-app {
  padding: 0;
  background: var(--bg-white);
}

.mydrop-link-preview-stage-shell .post-preview-browser-body {
  justify-content: stretch;
  align-items: stretch;
}

.mydrop-link-preview-stage-shell .post-preview-browser-address span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mydrop-link-browser-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-dark);
  background: color-mix(in srgb, var(--purple-dark) 12%, var(--surface));
}

.mydrop-link-browser-icon svg {
  width: 15px;
  height: 15px;
}

#mydrop-link-editor-preview-renderer {
  width: 100%;
  min-height: 100%;
}

#mydrop-link-editor-preview-renderer .mydrop-link-page {
  min-height: 100vh;
  padding: 30px 16px;
}

.mydrop-link-preview-stage-shell .post-preview-browser-body #mydrop-link-editor-preview-renderer,
.mydrop-link-preview-stage-shell .post-preview-browser-body .mydrop-link-page {
  min-height: 100%;
}

.mydrop-link-preview-stage-shell #mydrop-link-editor-preview-renderer,
.mydrop-link-preview-stage-shell #mydrop-link-editor-preview-renderer * {
  pointer-events: auto;
}

.mydrop-link-editor-section {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface);
}

.mydrop-link-foldable-section {
  display: block;
}

.mydrop-link-foldable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  transition: margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mydrop-link-foldable-section.collapsed .mydrop-link-foldable-header {
  margin-bottom: 0;
}

.mydrop-link-foldable-header h3 {
  margin: 0;
}

.mydrop-link-foldable-actions,
.link-editor-list-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-editor-remove-item,
.link-editor-duplicate-item,
.mydrop-link-fold-toggle,
.link-editor-card-fold-toggle,
.link-editor-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--height-small);
    min-width: var(--height-small);
    height: var(--height-small);
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 11px;
    color: var(--font-gray);
    border: 1px solid transparent;
  background: transparent;
}
.link-editor-remove-item:hover,
.link-editor-duplicate-item:hover,
.mydrop-link-fold-toggle:hover,
.link-editor-card-fold-toggle:hover,
.link-editor-drag-handle:hover {
    border: 1px solid var(--border-color);
}

.link-editor-remove-item svg,
.link-editor-duplicate-item svg,
.mydrop-link-fold-toggle svg,
.link-editor-card-fold-toggle svg,
.link-editor-drag-handle svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mydrop-link-foldable-section.collapsed .mydrop-link-foldable-body,
.link-editor-content-item.collapsed .link-editor-card-body {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.mydrop-link-foldable-section.collapsed .mydrop-link-fold-toggle svg,
.link-editor-content-item.collapsed .link-editor-card-fold-toggle svg {
  transform: rotate(-90deg);
}

.mydrop-link-foldable-body {
  display: grid;
  gap: 12px;
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
}

.mydrop-link-foldable-body > .full,
.mydrop-link-foldable-body > .link-editor-list {
  grid-column: 1 / -1;
}

.mydrop-link-editor-section h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--font-black);
  font-size: 14px;
}

.mydrop-link-editor-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mydrop-link-editor-field.full {
  grid-column: 1 / -1;
}

.mydrop-link-editor-section > .full {
  grid-column: 1 / -1;
}

.mydrop-link-editor-field label,
.mydrop-link-editor-field > span {
  color: var(--font-gray);
  font-size: 12px;
  font-weight: 600;
}

.mydrop-link-editor-field input,
.mydrop-link-editor-field textarea,
.mydrop-link-editor-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--input-text);
  padding: 9px 11px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mydrop-link-editor-field textarea {
  min-height: 92px;
  resize: vertical;
}

.mydrop-link-font-select {
  position: relative;
}

.mydrop-link-font-select-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--input-text);
  padding: 0 11px;
  cursor: pointer;
  font-size: 14px;
  outline: none;
}

.mydrop-link-font-select-button svg {
  width: 15px;
  height: 15px;
  color: var(--font-gray);
  flex: 0 0 auto;
}

.mydrop-link-font-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mydrop-link-font-select.open .mydrop-link-font-select-menu {
  display: flex;
}

.mydrop-link-font-select-menu button {
  min-height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--font-black);
  text-align: left;
  cursor: pointer;
  padding: 0 10px;
  font-size: 14px;
}

.mydrop-link-font-select-menu button:hover {
  background: var(--bg-blue-clear);
}

.mydrop-link-editor-field input[type="color"] {
    padding: 0;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 0;
    border: none !important;
}

.mydrop-link-editor-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--font-black);
  font-size: 13px;
}

.mydrop-link-editor-toggle input {
  width: 16px;
  height: 16px;
}

.mydrop-link-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--font-black);
  font-size: 13px;
  cursor: pointer;
}

.mydrop-link-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mydrop-link-switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--gray-clear-2);
  border: 1px solid var(--border-color);
  position: relative;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.mydrop-link-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--font-gray);
  transition: transform 160ms ease, background-color 160ms ease;
}

.mydrop-link-switch input:checked + span {
  background: color-mix(in srgb, var(--purple-dark) 24%, var(--surface));
  border-color: var(--purple-dark);
}

.mydrop-link-switch input:checked + span::after {
  transform: translateX(18px);
  background: var(--purple-dark);
}

.mydrop-link-domain-section {
  grid-template-columns: 1fr;
}

.mydrop-link-domain-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--input-bg);
}

.mydrop-link-domain-card.selected {
  border-color: color-mix(in srgb, var(--purple-dark) 58%, var(--border-color));
  background: color-mix(in srgb, var(--purple-dark) 10%, var(--surface));
}

.mydrop-link-domain-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--font-black);
  cursor: pointer;
}

.mydrop-link-domain-choice input {
  margin-top: 2px;
}

.mydrop-link-domain-choice span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mydrop-link-domain-choice strong {
  font-size: 13px;
}

.mydrop-link-domain-choice small,
.mydrop-link-dns-box small {
  color: var(--font-gray);
  font-size: 12px;
}

.mydrop-link-domain-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mydrop-link-domain-card.selected .mydrop-link-domain-panel {
  display: grid;
}

.mydrop-link-domain-panel .full,
.link-editor-list-item .full {
  grid-column: 1 / -1;
}

.mydrop-link-url-row {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--input-bg);
}

.mydrop-link-url-row input {
  flex: 1;
  min-width: 120px;
  min-height: 38px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-radius: 0;
  background: transparent;
}

.mydrop-link-domain-select {
  position: relative;
  align-self: stretch;
}

.mydrop-link-domain-select-button {
  height: 100%;
  min-width: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--font-gray);
  padding: 0 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.mydrop-link-domain-select-button svg {
  width: 14px;
  height: 14px;
  order: -1;
}

.mydrop-link-domain-select-menu {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.mydrop-link-domain-select.open .mydrop-link-domain-select-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mydrop-link-domain-select-menu button {
  min-height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--font-black);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.mydrop-link-domain-select-menu button:hover {
  background: var(--bg-blue-clear);
}

.mydrop-link-url-fixed {
  padding: 0 10px;
  color: var(--font-gray);
  font-size: 13px;
  white-space: nowrap;
}

.mydrop-link-url-fixed strong {
  color: var(--font-gray);
  font-weight: 500;
}

.mydrop-link-dns-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-big);
  border: 1px dashed var(--border-color);
  background: var(--surface);
}

.mydrop-link-dns-box p {
  color: var(--font-black);
  font-weight: 600;
}

.mydrop-link-dns-box div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  color: var(--font-gray);
  font-size: 12px;
}

.mydrop-link-dns-box strong {
  color: var(--font-black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

#link-editor-test-domain,
.link-editor-add-item,
.link-editor-add-social-link {
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
  color: var(--font-black);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

#link-editor-test-domain:disabled {
  cursor: wait;
  opacity: 0.72;
}

.mydrop-link-domain-test-status.available {
  color: var(--green-ink);
}

.mydrop-link-domain-test-status.invalid {
  color: var(--error);
}

.mydrop-link-domain-empty {
  margin: 0;
  color: var(--font-gray);
  font-size: 12px;
}

.brand-domain-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay);
  animation: brand-domain-backdrop-in 160ms ease-out forwards;
}

.brand-domain-modal.closing {
  pointer-events: none;
  animation: brand-domain-backdrop-out 180ms ease-in forwards;
}

.brand-domain-modal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, 100%);
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--surface);
  color: var(--font-black);
  box-shadow: var(--shadow-lg);
  animation: brand-domain-card-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-domain-modal.closing .brand-domain-modal-card {
  animation: brand-domain-card-out 160ms ease-in forwards;
}

@keyframes brand-domain-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brand-domain-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes brand-domain-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes brand-domain-card-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.brand-domain-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-domain-modal-header h2,
.brand-domain-modal-header p {
  margin: 0;
}

.brand-domain-modal-header h2 {
  color: var(--font-black);
  font-size: 20px;
  font-weight: 700;
}

.brand-domain-modal-header p {
  margin-top: 4px;
  color: var(--font-gray);
  font-size: 13px;
  line-height: 1.35;
}

#brand-domain-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--input-bg);
  color: var(--font-black);
  cursor: pointer;
}

.brand-domain-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#brand-domain-test-button {
  min-height: 36px;
  border: none;
  border-radius: var(--radius-big);
  background: var(--purple-dark);
  color: var(--bg-white);
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

#brand-domain-test-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.link-editor-image-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-editor-image-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--font-black);
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.link-editor-image-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--font-gray);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.link-editor-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-editor-image-remove,
.link-editor-remove-item {
  border: none;
  background: transparent;
  color: var(--font-gray);
  cursor: pointer;
  font-size: 12px;
}

.link-editor-list {
  display: flex;
  flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
  gap: 10px;
}

.link-editor-list-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
    box-sizing: border-box;
    width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-black-2);
}

.link-editor-card-body {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
}

.link-editor-list-item.animate-in,
.link-editor-content-item.animate-in,
.link-editor-social-bar-link.animate-in {
  animation: link-card-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes link-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
  }
}

.link-editor-list-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--font-black);
  font-size: 13px;
  min-height: 32px;
}

.link-editor-list-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.link-editor-list-header-left strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-editor-header-switch.mydrop-link-switch {
  transform: scale(0.65);
  transform-origin: left center;
  margin-right: -10px;
}

.link-editor-content-item.collapsed > :not(.link-editor-list-header) {
  display: none !important;
}

.link-editor-list-item.collapsed {
  padding-bottom: 12px;
}

.link-editor-card-fold-toggle svg {
  transition: transform 0.3s ease;
}

.link-editor-content-item.collapsed .link-editor-card-fold-toggle svg {
  transform: rotate(-90deg);
}

.link-editor-drag-handle {
  flex: 0 0 32px;
  cursor: grab;
}

.link-editor-dragging-source {
  opacity: 0.35;
}

.link-editor-drag-ghost {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  opacity: 0.82;
  transform: scale(0.96);
  transform-origin: top left;
  box-shadow: var(--shadow-lg);
}

.link-editor-drop-indicator {
  height: 10px;
  border-radius: 999px;
  background: var(--purple-dark);
  opacity: 0.85;
}

.link-editor-list-item textarea {
  min-height: 72px;
}

.link-editor-social-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--font-gray);
  font-size: 12px;
}

.link-editor-social-icon img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.link-editor-social-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-editor-social-bar-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
}

.link-editor-remove-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--font-gray);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.link-editor-remove-social-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.link-editor-header-switch {
  flex: 0 0 auto;
  min-height: 28px;
  gap: 0;
}

.link-editor-header-switch strong {
  display: none;
}

.link-editor-media-picker,
.link-editor-video-picker,
.link-editor-file-picker,
.link-editor-profile-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.link-editor-media-list,
.link-editor-profile-options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-editor-media-chip,
.link-editor-profile-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
  color: var(--font-black);
  padding: 5px 8px;
  box-sizing: border-box;
}

.link-editor-media-drag-handle {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--font-gray);
  cursor: grab;
  padding: 0;
}

.link-editor-media-drag-handle svg {
  width: 16px;
  height: 16px;
}

.link-editor-media-drop-indicator {
  width: 8px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--purple-dark);
  opacity: 0.85;
}

.link-editor-profile-option {
  cursor: pointer;
}

.link-editor-profile-option.selected {
  border-color: var(--purple-dark);
  background: color-mix(in srgb, var(--purple-dark) 10%, var(--surface));
}

.link-editor-media-chip img,
.link-editor-profile-option img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
}

.link-editor-media-chip small,
.link-editor-profile-option span,
.link-editor-file-summary span {
  color: var(--font-gray);
  font-size: 12px;
}

.link-editor-remove-media-item {
  border: none;
  background: transparent;
  color: var(--font-gray);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.link-editor-file-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
}

.link-editor-select-media,
.link-editor-select-file,
.link-editor-select-audio {
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--font-black);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.link-editor-audio-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-editor-audio-picker.filled .link-editor-audio-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--surface);
}

.link-editor-audio-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.link-editor-audio-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--purple-dark) 14%, var(--surface));
  color: var(--purple-dark);
  font-size: 18px;
  font-weight: 700;
}

.link-editor-audio-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--font-black);
  font-size: 13px;
  font-weight: 600;
}

.link-editor-audio-remove {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--font-gray);
  cursor: pointer;
  font-size: 14px;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-editor-audio-remove:hover {
  background: color-mix(in srgb, var(--font-gray) 12%, transparent);
  color: var(--font-black);
}

.link-editor-audio-preview audio {
  width: 100%;
  height: 34px;
}

.link-editor-audio-replace {
  align-self: flex-start;
}

.link-analytics-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.link-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-analytics-header h3 {
  margin: 0;
}

#link-analytics-refresh.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.link-analytics-refresh-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mydrop-link-button-spin 0.7s linear infinite;
}

.link-analytics-card,
.link-analytics-table-card {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-big);
  background: var(--input-bg);
}

.link-analytics-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-analytics-card strong {
  color: var(--font-black);
  font-size: 22px;
}

.link-analytics-card span,
.link-analytics-table-card p {
  color: var(--font-gray);
  font-size: 12px;
}

.link-analytics-table-card h4 {
  margin: 0 0 8px;
  color: var(--font-black);
  font-size: 13px;
}

.link-analytics-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.link-analytics-table-card th,
.link-analytics-table-card td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.link-analytics-table-card th {
  color: var(--font-gray);
  font-weight: 700;
}

.mydrop-link-editor-right button {
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
    height: var(--height-small);
    border-radius: var(--radius-small);
    font-size: 11px;
}

.mydrop-link-editor-secondary {
  background: var(--surface);
  color: var(--font-black);
  border: 1px solid var(--border-color) !important;
}

.mydrop-link-editor-danger {
  background: var(--mydrop-link-danger-bg);
  color: var(--mydrop-link-danger-text);
}

.mydrop-link-editor-primary {
  background: var(--purple-dark);
  color: var(--bg-white);
}

.mydrop-link-slug-status.available {
  color: var(--green-ink);
}

.mydrop-link-slug-status.invalid {
  color: var(--error);
}

@media (max-width: 860px) {
  .mydrop-link-layout-split .mydrop-link-shell,
  .mydrop-link-editor-body {
    grid-template-columns: 1fr;
  }

  .mydrop-link-editor-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}
