/* App Core — estilos mínimos do dashboard/frontend */
.booklycast-dashboard__banner {
  position: relative;
}
.booklycast-dashboard__me {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booklycast-dashboard__me:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .booklycast-dashboard__me {
    position: static;
    display: block;
    max-width: none;
    text-align: right;
    margin: 0 0 0.65rem;
  }
}
.booklycast-checklist {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
.booklycast-checklist__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.booklycast-checklist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.booklycast-checklist__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
a.booklycast-checklist__link:hover {
  text-decoration: none;
}
a.booklycast-checklist__link:hover .booklycast-checklist__text {
  text-decoration: underline;
}
.booklycast-checklist__mark {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}
.booklycast-checklist__item.is-done .booklycast-checklist__mark {
  background: #111;
  border-color: #111;
  color: #fff;
}
.booklycast-checklist__item.is-done .booklycast-checklist__text {
  color: #667085;
}
.booklycast-checklist__text {
  flex: 1 1 auto;
}
.booklycast-checklist__opt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}
.booklycast-dashboard__list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.booklycast-dashboard-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}
.booklycast-dashboard-row:hover {
  color: inherit;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.03);
}
.booklycast-dashboard-row .booklycast-dashboard-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  font-size: 1rem;
}
.booklycast-dashboard-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.booklycast-dashboard-row__body strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.booklycast-dashboard-row__body span {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.35;
}
.booklycast-dashboard__area {
  margin: 0 0 1.6rem;
}
.booklycast-dashboard__area-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}
.booklycast-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.booklycast-dashboard-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.booklycast-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
}
.booklycast-dashboard-card__icon {
  flex: 0 0 auto;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
}
.booklycast-dashboard-card__icon--usuarios { background: #f3e5f5; color: #7b1fa2; }
.booklycast-dashboard-card__icon--papeis { background: #efebe9; color: #5d4037; }
.booklycast-dashboard-card__icon--mensagens { background: #e0f7fa; color: #00838f; }
.booklycast-dashboard-card__icon--perfil { background: #eceff1; color: #455a64; }
.booklycast-dashboard-card__icon--default { background: #f5f5f5; color: #616161; }
.booklycast-dashboard-card__icon--mediakit { background: #eef2ff; color: #4f46e5; }
.booklycast-dashboard-card__icon--cofre { background: #fdf2f8; color: #db2777; }

.booklycast-dashboard-card__body {
  min-width: 0;
}
.booklycast-dashboard-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  line-height: 1.3;
}
.booklycast-dashboard-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}
.booklycast-reminders__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.booklycast-reminders__empty {
  margin: 0 0 0.5rem;
  color: #667085;
  font-size: 0.95rem;
}
.booklycast-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.booklycast-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.booklycast-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(17, 17, 17, 0.28);
  color: inherit;
  text-decoration: none;
}
.booklycast-stat-card__value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
}
.booklycast-stat-card__label {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.35;
}
.booklycast-stat-card__area {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}
.booklycast-stat-card--alert {
  border-color: #fecdca;
  background: #fff8f6;
}
.booklycast-stat-card--alert .booklycast-stat-card__value {
  color: #b42318;
}
.notification.is-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  padding: 1rem;
  border-radius: 6px;
}
.notification.is-danger {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  padding: 1rem;
  border-radius: 6px;
}
.notification.is-warning {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #93370d;
  padding: 1rem;
  border-radius: 6px;
}
.fonte_preta { color: #111; }
.organiza-form .panel-title { font-weight: 600; }

.bc-studio {
  max-width: none;
  margin: 0 0 2.5rem;
  color: #111;
}
.bc-studio > .d-flex {
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.25rem !important;
  padding: 0.9rem 1rem 1rem;
  background: #f7f7f8;
  border: 1px solid #ececee !important;
  border-radius: 12px;
}
.bc-studio h1,
.bc-studio .bc-studio__title {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 0.2rem;
}
.bc-studio__lede {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}
.bc-studio .card {
  border: 1px solid #e5e7eb !important;
  border-radius: 10px;
  box-shadow: none !important;
  overflow: hidden;
}
.bc-studio .card-header {
  background: #fff;
  border-bottom: 0;
}
.bc-studio .card-header h2,
.bc-studio .card-header h4 {
  font-size: 1.15rem;
  font-weight: 600;
}
.bc-studio .form-control,
.bc-studio select.form-control,
.bc-studio textarea.form-control {
  border-radius: 8px;
  border-color: #e5e7eb;
}
#copyrights,
body.booklycast-studio #copyrights,
body.booklycast-book-dark #copyrights,
body.booklycast-book-light #copyrights {
  background-color: #1a1a1a !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
#copyrights .booklycast-footer-copy,
#copyrights .booklycast-footer-credit,
body.booklycast-studio #copyrights .booklycast-footer-copy,
body.booklycast-studio #copyrights .booklycast-footer-credit {
  color: rgba(255, 255, 255, 0.82) !important;
}

.bc-i18n-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.bc-i18n-tabs button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.bc-i18n-tabs button.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.bc-i18n-pane[hidden] {
  display: none;
}

.bc-studio .btn-dark {
  background: #111827;
  border-color: #111827;
  border-radius: 8px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

body:not(.wp-admin) #wpadminbar {
  display: none !important;
}
html.admin-bar {
  margin-top: 0 !important;
}

.bc-release-table {
  width: 100%;
  table-layout: auto;
}
.bc-release-table th,
.bc-release-table td {
  vertical-align: middle;
}
.bc-release-table th.text-center,
.bc-release-table td.text-center {
  text-align: center;
  width: 7.5rem;
}
.bc-release-table td.text-end {
  text-align: right;
  white-space: nowrap;
}
.bc-release-table input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
}
.bc-release-hint {
  margin-top: 0.85rem;
  color: #64748b;
  font-size: 0.85rem;
}

.bc-logo-preview {
  min-height: 64px;
  display: flex;
  align-items: center;
  margin: 0.4rem 0 0.65rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px dashed #d1d5db;
}
.bc-logo-preview--dark {
  background: #111;
  border-color: #333;
}
.bc-logo-preview img {
  max-height: 56px;
  width: auto;
}
body:not(.wp-admin) .media-modal {
  z-index: 160000;
}
body:not(.wp-admin) .media-modal-backdrop {
  z-index: 159990;
}

/* ===== Kit visual do Studio (bc-st-*) ===== */
.bc-st-stack {
  display: grid;
  gap: 1rem;
}

.bc-st-section__title {
  margin: 1.5rem 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.bc-st-section__lead {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.bc-st-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.bc-st-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.bc-st-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.bc-st-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.bc-st-card__lead {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.bc-st-field {
  margin-top: 1.1rem;
}

.bc-st-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

.bc-st-help {
  margin: 0 0 0.55rem;
  max-width: 62ch;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #6b7280;
}

/* Opções em cartão */
.bc-st-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.bc-st-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.bc-st-option input,
.bc-st-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bc-st-option strong {
  font-size: 0.9rem;
  color: #111;
}

.bc-st-option small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b7280;
}

.bc-st-option:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.bc-st-option:focus-within,
.bc-st-segment label:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Opções em pílula */
.bc-st-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
}

.bc-st-segment label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
}

.bc-st-segment label:has(input:checked) {
  background: #111;
  color: #fff;
}

.bc-st-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid #9ca3af;
}

.bc-st-swatch--white {
  background: #fff;
}

.bc-st-swatch--black {
  background: #111;
}

/* Arquivos */
.bc-st-files {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.bc-st-files--grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.bc-st-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.bc-st-file--tile {
  flex-direction: column;
  align-items: stretch;
  padding: 0.4rem;
}

.bc-st-file__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f4f6;
}

.bc-st-file__thumb::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #9ca3af;
}

.bc-st-file__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-st-file__icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px;
  background: #111;
  position: relative;
}

.bc-st-file__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
}

.bc-st-file__name {
  flex: 1 1 10rem;
  min-width: 0;
  overflow: hidden;
  font-size: 0.85rem;
  color: #111;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bc-st-file__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
}

.bc-st-link {
  padding: 0.15rem 0;
  border: 0;
  background: none;
  font-size: 0.82rem;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bc-st-link--danger {
  color: #b91c1c;
}

.bc-st-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  background: none;
  font-size: 0.85rem;
  color: #111;
  cursor: pointer;
}

.bc-st-add::before {
  content: "+";
  font-weight: 600;
}

/* Saiba mais */
.bc-st-more {
  margin: -0.3rem 0 0.6rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.bc-st-more > summary {
  display: inline;
  cursor: pointer;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.bc-st-more > summary::-webkit-details-marker {
  display: none;
}

.bc-st-more > p {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  line-height: 1.45;
}

/* Barra de salvar */
.bc-st-savebar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.bc-st-savebar__status {
  display: none;
  font-size: 0.85rem;
  color: #b45309;
}

.bc-st-savebar.is-dirty .bc-st-savebar__status {
  display: inline;
}

.bc-st-savebar .button {
  margin: 0;
}

/* Abas de uma tela do Studio (links ?aba=) */
.bc-st-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.bc-st-tabs a {
  flex: 0 0 auto;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: #374151;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
}

.bc-st-tabs a:hover {
  color: #111;
  background: #f3f4f6;
}

.bc-st-tabs a[aria-current="page"] {
  color: #fff;
  background: #111;
}

.bc-st-tabs a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .bc-st-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .bc-st-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* Título compacto das telas do Studio (tema: booklycast_theme_page_heading). */
.bc-st-head {
  margin: 0 0 1.25rem;
}

.bc-st-head__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111;
  text-align: left;
}

.bc-st-head__sub {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #6b7280;
}

/* Coluna de abas da tela do Studio (computador). No celular fica a faixa .bc-st-tabs. */
.bc-st-shell__main {
  min-width: 0;
}

.bc-st-nav {
  display: none;
}

.bc-st-nav__title {
  margin: 0 0 0.35rem;
  padding: 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bc-st-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-st-nav__link {
  display: block;
  padding: 0.42rem 0.6rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
}

.bc-st-nav__link:hover {
  color: #111;
  background: #f3f4f6;
}

.bc-st-nav__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.bc-st-nav__link[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  background: #111;
}

@media (min-width: 992px) {
  .bc-st-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .bc-st-nav {
    display: block;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .bc-st-shell .bc-st-tabs {
    display: none;
  }
}

@media (max-width: 767px) {
  .bc-st-head__title {
    font-size: 1.25rem;
  }
}

/* O Studio esconde campos com o atributo hidden: o kit não pode reexibir. */
.bc-st-card [hidden],
.bc-st-field[hidden],
.bc-st-add[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .bc-st-card {
    padding: 0.9rem 0.85rem 1rem;
  }

  .bc-st-savebar {
    justify-content: stretch;
  }

  .bc-st-savebar .button {
    flex: 1 1 auto;
  }
}
