.ap-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
  font-family: inherit
}

.ap-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06)
}

.ap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.ap-card h2,
.ap-card h3 {
  color: #152532;
  margin: 0 0 12px 0
}

.ap-form {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.ap-form-section {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding-bottom: 20px;
  margin-bottom: 10px
}

.ap-form-section:last-child {
  border-bottom: 0
}

.ap-form label {
  display: block;
  font-weight: 900;
  color: #152532;
  margin-bottom: 8px
}

.ap-form input[type=text],
.ap-form input[type=number],
.ap-form textarea,
.ap-form select,
.ap-project-switch select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  outline: none;
  font-family: inherit
}

.ap-form textarea {
  resize: vertical
}

.ap-btn {
  background: #152532;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none
}

.ap-btn:hover {
  filter: brightness(1.05)
}

.ap-btn-secondary {
  background: #74a1bf;
  color: #000
}

.ap-alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  margin-bottom: 15px
}

.ap-ok {
  background: rgba(116, 161, 191, .25);
  border: 1px solid rgba(116, 161, 191, .55)
}

.ap-err {
  background: rgba(255, 0, 0, .06);
  border: 1px solid rgba(255, 0, 0, .2)
}

.ap-info {
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .12)
}

.ap-help {
  color: rgba(0, 0, 0, .65);
  font-size: 13px;
  margin: 4px 0
}

.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #152532;
  color: #fff;
  font-weight: 900
}

.ap-grid {
  margin-top: 6px;
  border: 1px dashed rgba(0, 0, 0, .18);
  border-radius: 14px;
  padding: 12px
}

.ap-grid-title {
  font-weight: 900;
  color: #152532;
  margin-bottom: 10px
}

.ap-field {
  margin-bottom: 10px
}

.ap-checkbox-group,
.ap-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px
}

.ap-option-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 400 !important;
  cursor: pointer;
  margin-bottom: 0 !important
}

.ap-option-label input {
  margin: 0
}

/* Grid de Estilos */
.ap-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 10px
}

.ap-style-card {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box
}

.ap-style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.ap-style-card:has(input:checked),
.ap-style-card.select {
  border: 3px solid #152532 !important;
  background: rgba(21, 37, 50, .02) !important
}

.ap-style-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
  transition: opacity .2s;
  order: 1
}

.ap-style-title {
  padding: 12px 10px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: #152532;
  order: 2;
  background: #fff
}

.ap-style-card:hover .ap-style-img {
  opacity: 0.9
}

.ap-style-card:has(input:checked) .ap-style-title,
.ap-style-card.select .ap-style-title {
  background: transparent
}

.ap-instr-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
  display: block;
  border: 1px solid rgba(0, 0, 0, .1)
}

.ap-project-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 6px
}

.ap-files {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ap-files a {
  color: #152532;
  font-weight: 900;
  text-decoration: none
}

.ap-files a:hover {
  text-decoration: underline
}

.ap-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px
}

.ap-comment {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 10px 12px
}

.ap-comment-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, .6);
  margin-bottom: 6px;
  font-weight: 900
}

.ap-comment-body {
  color: #000;
  white-space: pre-wrap
}

/* Botões do plugin (força estilo acima do tema) */
.ap-wrap a.ap-btn,
.ap-wrap button.ap-btn {
  background: #152532 !important;
  color: #fff !important;
  border: 0 !important;
}

.ap-wrap .ap-btn-secondary {
  background: #74a1bf !important;
  color: #000 !important;
}

.ap-wrap a.ap-btn:hover,
.ap-wrap button.ap-btn:hover {
  filter: brightness(1.1) !important;
}

/* Campos de inserção manual */
.ap-wrap .ap-outro-input {
  display: none;
  margin-top: 10px;
  animation: apFadeIn 0.3s ease;
}

.ap-wrap .ap-outro-input.ap-show {
  display: block !important;
}

@keyframes apFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}