/* Post form (New Post page and edit dialog): Modern Dark Pro Studio */

.np .field.mb { margin-bottom: 16px; }
.np .row.between { justify-content: space-between; }
.np .row.tight { margin: 8px 0 0; }
.np .row.flush { margin-bottom: 0; }
.np .checks.flush { margin: 0; }
.np .btn.tagbtn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transition: all 0.16s ease;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 4px;
}

.np .btn.tagbtn:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: #818cf8;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.np .cap-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.np .cap-tools select {
  min-width: 180px;
  max-width: 220px;
  min-height: 38px;
  height: 38px;
  padding: 6px 14px;
}

.np .cap-tags {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.np .cap-tags-l {
  font-size: 13px;
  font-weight: 750;
  color: #c7d2fe !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.np .ctabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.np .ctab {
  margin: 0 2px;
}

.np .acc.nocred { opacity: 0.5; }
.np .over { color: #f87171 !important; font-weight: 700; }
.np .np-err { color: #f87171 !important; }

/* Sectioned Layout */
.np .np-title { margin: 0 0 18px; }
.np .np-title h2 { font-size: 22px; font-weight: 800; color: #ffffff !important; margin: 0 0 4px; }
.np .np-title p { margin: 0; color: #cbd5e1 !important; font-size: 14.5px; }

.np .np-sec {
  padding: 22px 24px;
  margin-bottom: 18px;
  background: #141f36;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.55);
}

.np .np-sh {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.np .np-sh > div:nth-child(2) {
  flex: 1;
}

.np .np-sh h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: #ffffff !important;
}

.np .np-sh p {
  margin: 4px 0 0;
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.5;
}

.np .np-n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.np .np-act {
  display: flex;
  gap: 8px;
}

.np .btn.sm {
  padding: 6px 14px;
  font-size: 13px;
}

.np .acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.np .acc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: #0f172a;
  cursor: pointer;
  color: #ffffff !important;
  transition: all 0.15s ease;
}

.np .acc:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #172033;
}

.np .acc:has(input.npAccount:checked) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.np .acc-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.np .acc-txt b {
  font-size: 14px;
  font-weight: 750;
  color: #ffffff !important;
}

.np .acc-txt span {
  font-size: 12.5px;
  color: #cbd5e1 !important;
}

.np .npAccTime {
  width: 100%;
}

.np .ctab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.np .ctab .pico {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.np .ctab .pico svg {
  width: 11px;
  height: 11px;
}

.np .np-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 16px 20px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

/* Media Upload Bounded Container */
.np .row.flush {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px dashed rgba(99, 102, 241, 0.45);
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.np .row.flush:hover {
  border-color: #818cf8;
  background: rgba(20, 30, 55, 0.9);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25), inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.np .row.flush input[type=file] {
  flex: 1;
  min-width: 240px;
  color: #cbd5e1;
}

.np .row.flush input[type=file]::file-selector-button {
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 700;
  cursor: pointer;
  margin-right: 14px;
  transition: all 0.16s ease;
}

.np .row.flush input[type=file]::file-selector-button:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #ffffff !important;
}

.np .row.flush #npLib {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
  transition: all 0.16s ease;
}

.np .row.flush #npLib:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  transform: translateY(-1px);
}

.np .thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 120px));
  gap: 12px;
  margin-top: 16px;
}

.np .thumb {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #090e1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.np .thumb img,
.np .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np .thumb .tb {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 6px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.np .thumb .tb button {
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
}

.np .thumb .tb button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.np #npReelBox {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ffffff;
  font-weight: 650;
}

.np #targetPreview {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.np .pv-head {
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 750;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.np .pv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.np .pv-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #ffffff;
}

.np .pv-list .pico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.np .pv-list .pico svg {
  width: 14px;
  height: 14px;
}

.np .np-actions {
  display: flex;
  gap: 12px;
}

.np .np-foot {
  margin-bottom: 0;
}

.np textarea {
  width: 100%;
}
