.site-header__end [data-ll-nav-auth] {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: .75rem;
}

.site-header__end [data-ll-nav-auth] a,
.site-header__end [data-ll-nav-auth] button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid var(--border-color, rgba(17, 17, 17, 0.12));
  border-radius: 999px;
  background: transparent;
  color: var(--secondary-color, #444);
  font: 500 .78rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-header__end [data-ll-nav-auth] a:hover,
.site-header__end [data-ll-nav-auth] button:hover {
  color: var(--primary-color, #111);
  background: rgba(255, 255, 255, 0.72);
}

.site-header__end [data-ll-nav-auth] .ll-nav-status {
  padding: .2rem .35rem;
  color: var(--tertiary-color, #666);
  font-size: .72rem;
  font-weight: 500;
}

body.ll-editing [data-edit],
body.ll-editing [data-edit-image] {
  outline: 1px solid rgba(17, 17, 17, 0.14);
  outline-offset: 3px;
  cursor: text;
}

body.ll-editing [data-edit-image] {
  cursor: pointer;
}

body.ll-editing button[data-edit]:not([data-ll-nav-auth] *),
body.ll-editing a[data-edit].wp-block-button__link,
body.ll-editing button[data-edit].wp-block-button__link,
body.ll-editing button[data-edit].ac-buy,
body.ll-editing a[data-edit].ac-simple-link,
body.ll-editing a[data-edit].ac-whatsapp-proof,
body.ll-editing a[data-edit].ac-feedback-link,
body.ll-editing a[data-edit].button,
body.ll-editing button[data-edit].button {
  pointer-events: auto;
  cursor: text;
}

body.ll-editing a:has(> [data-edit]),
body.ll-editing button:has(> [data-edit]) {
  pointer-events: none;
}

body.ll-editing a:has([data-edit]),
body.ll-editing button:has([data-edit]) {
  pointer-events: none;
}

body.ll-editing a [data-edit],
body.ll-editing button [data-edit] {
  pointer-events: auto;
}

body.ll-editing [data-edit]:focus {
  outline-color: rgba(17, 17, 17, 0.34);
  background: rgba(255, 255, 255, 0.72);
}

.entry__link-url,
.entry__image-alt {
  display: none;
}

body.ll-editing .entry__link-url,
body.ll-editing .entry__image-alt {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--tertiary-color, #666);
  margin-top: 0.15rem;
  word-break: break-all;
}

body.ll-editing .entry__link-url:empty::before,
body.ll-editing .entry__image-alt:empty::before {
  content: 'Add URL…';
  color: var(--tertiary-color, #999);
}

body.ll-editing .entry__image-alt:empty::before {
  content: 'Add image alt text…';
}

.entry__role:not(:has(span:not(:empty))) {
  display: none;
}

body.ll-editing .entry__role {
  display: block;
}

body.ll-editing .entry__role span:empty {
  min-height: 1.25em;
  display: block;
}

body.ll-editing .entry__role span:empty::before {
  content: 'Add role / subtitle…';
  color: var(--tertiary-color, #999);
  font-size: 0.85rem;
}

body.ll-editing .entry__copy {
  min-height: 2rem;
}

.ll-media-panel {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 9999;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 5rem));
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  color: #111;
  font: 13px/1.35 Inter, system-ui, sans-serif;
}

.ll-media-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ll-media-panel-head strong {
  font-size: .82rem;
  font-weight: 600;
}

.ll-media-upload {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(247, 247, 245, 0.95);
  color: #111;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
}

.ll-media-upload:hover {
  background: #fff;
}

.ll-media-upload input {
  display: none;
}

.ll-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.ll-media-grid button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ll-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
