.jsl-admin {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jsl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jsl-tabs button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.jsl-tabs button.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.jsl-admin__status {
  margin: 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 13px;
}

.jsl-admin__status.is-error {
  color: #b42318;
}

.jsl-admin__panel {
  padding: 22px;
}

.jsl-admin__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.jsl-admin__field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.jsl-admin__field input,
.jsl-admin__field textarea,
.jsl-admin__repeat input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.jsl-admin__field textarea {
  min-height: 96px;
  resize: vertical;
}

.jsl-admin__styles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 24px;
}
.jsl-admin__styles label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.jsl-admin__styles select { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.jsl-admin__map { margin: 12px 0 20px; color: var(--muted); }
.jsl-admin__map iframe { width: 100%; height: 240px; border: 0; border-radius: 12px; }
.jsl-admin__actions { flex-wrap: wrap; margin-bottom: 12px; }
.jsl-admin button:disabled { opacity: 0.5; cursor: default; }
.jsl-editor__photo { width: 120px; height: 160px; margin: 12px 0; }
.jsl-admin__panel[hidden] { display: none; }
@media (max-width: 720px) {
  .jsl-admin__styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jsl-member { flex-wrap: wrap; }
  .jsl-member__tools { width: 100%; justify-content: flex-start; }
}

.jsl-admin__actions {
  display: flex;
  gap: 8px;
}

.jsl-admin__actions button,
.jsl-admin__add,
.jsl-admin__repeat button,
.jsl-member button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jsl-admin__actions button[data-save],
.jsl-editor__save {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.jsl-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.jsl-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.jsl-member__photo {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #e7eef8;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.jsl-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jsl-member__meta {
  flex: 1;
  min-width: 0;
}

.jsl-member__meta strong,
.jsl-member__meta span {
  display: block;
}

.jsl-member__meta span {
  color: var(--muted);
  font-size: 13px;
}

.jsl-member__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.jsl-editor {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.jsl-admin__repeat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.jsl-admin__add {
  margin: 4px 0 16px;
}

.jsl-admin-preview {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #0d1b33;
}

.jsl-admin-preview[hidden] {
  display: none;
}

.jsl-admin-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  color: #fff;
  font-weight: 700;
}

.jsl-admin-preview__bar button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #163a73;
  font-weight: 700;
  cursor: pointer;
}

.jsl-admin-preview iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.jsl-crop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 32, 0.5);
}

.jsl-crop__card {
  width: min(420px, calc(100% - 32px));
  padding: 22px;
  border-radius: 18px;
  background: #fff;
}

.jsl-crop__card h2 {
  margin: 0;
}

.jsl-crop__card p {
  margin: 8px 0 14px;
  color: #5d6b80;
  font-size: 14px;
}

.jsl-crop__view {
  width: 240px;
  height: 320px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #e7eef8;
  cursor: grab;
  position: relative;
}

.jsl-crop__view img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
}

.jsl-crop__zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.jsl-crop__btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.jsl-crop__btns button {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e6ebf2;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jsl-crop__btns [data-crop="yes"] {
  background: #2f6bff;
  border-color: #2f6bff;
  color: #fff;
}
